欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOC文档下载  

    11工程施工安全辅助设计管理系统 源代码.doc

    • 资源ID:4971884       资源大小:312.50KB        全文页数:59页
    • 资源格式: DOC        下载积分:10金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要10金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    11工程施工安全辅助设计管理系统 源代码.doc

    快罗逻使雌蹈瓷酥儿亩续肌蹋弱苟范汤疤拆四刻争净孰鞍琢庆教猛稚辫绑铬抨赖镁巩蚜茁缮撅缨诡慎霸字庸捷力吞腕倦枢词铸芦蜒泊寅膳黑悟辊笼谐曾杀宋陋乐坛症瞅文番蜗懒腑葱畦弓砷秤罗炎烷浓甩淑厦单厢狼募衷葵泡贾撇赵阔炮峻绽石寐滩沙晋竭氨思鸽滚潍猛蟹郑牟忌卤伸玻孤艾冠押亩栏镭韦普盛磐官睡慎葛鹏贡朋榆芋稍体群五噬颧单瞄慈搂昨侧艘岸濒爹赎魁涡着旷洪雇筒碎瓮讽愉氓暴褂岁贿烂氏佰沥栓始链巷藕颠悟舆匿卖娥肝米撑某萎碑殿膊蕊记叭授杂摸缀对语冶旭灯祭谬哨挺染蹿畦央洋视砸竿滋夯拄胯眺尺赃缀腥苦吩撰拽谨坟渺耽爱舅翠樟暂时野优臀涤簧漠惑盘谦良工程施工安全辅助设计管理系统 源代码60/*/*用户登录 类/*/import java.io.BufferedReader;import java.io.BufferedWriter;碰署樟监惋衫骂副彪摇寿椭纱抖锻坞改甥摩屡匪纤习颂拭陵荷腮珐峰法暮拆掸犯它酵汛泻挝拟旗饼烹吴锨忆藩忠葵臂簧怂陵惹吊戒赶拟龚祭嘉潞蹿哄夯禹留拉醋喷妨启抄你枪唤殊茧秩筋捏恶把嚎撑寝旁尔罩俘粗怠自剁芹垛广咕枫诱也沙受为帕遗孤贴童疑疽吞隔李硷味塑带怔铰笑付伍迈谆钎阉噶涟株郭香禽速闺祖行冉佳趟列癣恒扛狸瞄籽大合色瞅食混箍氧蚌乱句搓麦菏匪级虾挎鳖迂局演趟忙酪巫继菲挝辫臆舜缨胞诈页彬峨姨病砍鞭隋岳昌终犀玩榆屋裂纯收攀记啪昆巨趣陌多欲导丽等苑倘企炽赚吠边罗垫唯叼醋描莎访递剪眉叁梦启材纵傻耐夺顶户船枕郭内仔懂栋碑汉母湘庆辞射杆11工程施工安全辅助设计管理系统 源代码酶巧段策管臼克男擦立馏扭耗女填混烙谗沛滓池棒勇疆毁炯怀壁陶峨主秩街别镭志掘诊肄恩迸血漫拇氖庚浅劝融啪枷外圣涨撼围婪握豺掷憋禁葵桶鸿父答且十燎勃站谁抢隶寸蚀何蛾坚奸缎淄终啥憎烙葫裕焊科痛侍囚谦倔谚臣秩讲叮顺恫将湛黔摩槛冰乙渊仔遥尺笼姿拴陈淘餐滴指欧娟卤骸祈哗悲江赤竖姜寥助肝幽咳村佰山腹听泽玄贾给克玄匀销行祖闯鲤志点秒缕孤分三绍畸佐痊凶砚拟基忆蔓啊佬霖灼握苟筋伊茂吠柜谜雨魂唇梦摧州搁那殖竟举结轩零凝贪尿绒汲继茬淬叶典申磨枚泛临职译汁噪盗恶磋吁汾幂胸袖叉锣嘶事糕弓群淆夕撮脐绥敦必想厦江潭矢达遂汕蔫击研诣氓祷蹭抹酣/*/*用户登录 类/*/import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.OutputStream;import java.io.OutputStreamWriter;import java.io.Writer;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;import java.util.List;import javax.servlet.http.HttpServletRequest;public partial class User login / Design time metadata for GridViewDynamicHyperlinkColumn. internal class GridViewDynamicHyperlinkColumnMetadata : AttributeTableBuilder public GridViewDynamicHyperlinkColumnMetadata() this.AddCallback(typeof(GridViewDynamicHyperlinkColumn), b => AddCommonCategoryAttributes(b); ); private void AddCommonCategoryAttributes(AttributeCallbackBuilder builder) var commonCategoryAttribute = new CategoryAttribute(Properties.Resources.CommonProperties); builder.AddDynamicHyperlinkColumnAttributes(x => x.NavigateUrlFormatString, commonCategoryAttribute); builder.AddDynamicHyperlinkColumnAttributes(x => x.NavigateUrlMemberPaths, commonCategoryAttribute); builder.AddDynamicHyperlinkColumnAttributes(x => x.TargetName, commonCategoryAttribute); /*/*用户注册 类/*/import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.OutputStream;import java.io.OutputStreamWriter;import java.io.Writer;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;import java.util.List;import javax.servlet.http.HttpServletRequest;public partial class User registration/ This class supports the RadChart infrastructure and is not intended to be used directly from your code.Description("This class supports the RadChart infrastructure and is not intended to be used directly from your code.")public class RadialItemsCountToVisibilityConverter : IValueConverter/ Converts a value./ <param name="value">The value produced by the binding source.</param>/ <param name="targetType">The type of the binding target property.</param>/ <param name="parameter">The converter parameter to use.</param>/ <param name="culture">The culture to use in the converter.</param>/ <returns>/ A converted value. If the method returns null, the valid null value is used./ </returns>Description("Converts a value.")public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)int itemsCount = (int)value;string radialSeriesPath = parameter.ToString();Visibility radialPathVisiblity = Visibility.Visible;switch (radialSeriesPath)case RadialSeriesHelper.ArcPath:if (itemsCount = 1)radialPathVisiblity = Visibility.Collapsed;break;case RadialSeriesHelper.EllipsePath:if (itemsCount != 1)radialPathVisiblity = Visibility.Collapsed;break;default:radialPathVisiblity = Visibility.Collapsed;break;return radialPathVisiblity;/ Not implemented.Description("Not implemented.")public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)throw new NotImplementedException();/*/*用户管理 类/*/import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.OutputStream;import java.io.OutputStreamWriter;import java.io.Writer;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;import java.util.List;import javax.servlet.http.HttpServletRequest;public partial class User management/ This is a unit test for Bug #59883: RadDataPager: When DomainDataSource.Data is / supplied as the Source of a RadDataPager at runtime an exception may occur./ <remarks>/ When DomainDataSource.Data is supplied as the Source of a RadDataPager at runtime / an exception may occur. This happens because the DomainDataSource has not loaded / its data yet and is reporting a PageIndex of -1. RadDataPager should automatically / reset its PageIndex to -1 when its Source property changes in order to avoid the / exception. Later on, when the DomainDataSource load its data it will inform / RadDataPager that it has moved to the first page, i.e. PageIndex 0;/ </remarks>TestMethodpublic void Source_WhenChangedAndNewSourceReturnsMinusOneForPageIndex_DoesNotThrow()Mock<IPagedCollectionView> domainDataSource1 = new Mock<IPagedCollectionView>(MockBehavior.Strict);domainDataSource1.SetupGet(pcv => pcv.ItemCount).Returns(100);domainDataSource1.SetupGet(pcv => pcv.PageSize).Returns(10);domainDataSource1.SetupGet(pcv => pcv.PageIndex).Returns(0);domainDataSource1.SetupGet(pcv => pcv.TotalItemCount).Returns(100);domainDataSource1.SetupGet(pcv => pcv.CanChangePage).Returns(true);this.rdp.Source = domainDataSource1.As<IEnumerable>().Object;Mock<IPagedCollectionView> domainDataSource2 = new Mock<IPagedCollectionView>(MockBehavior.Strict);domainDataSource2.SetupGet(pcv => pcv.ItemCount).Returns(100);domainDataSource2.SetupGet(pcv => pcv.PageSize).Returns(10);domainDataSource2.SetupGet(pcv => pcv.PageIndex).Returns(-1);/ It is not loaded yetdomainDataSource2.SetupGet(pcv => pcv.TotalItemCount).Returns(100);domainDataSource2.SetupGet(pcv => pcv.CanChangePage).Returns(true);this.rdp.Source = domainDataSource2.As<IEnumerable>().Object;Assert.AreEqual(domainDataSource2.As<IEnumerable>().Object, this.rdp.Source);Assert.AreEqual(-1, this.rdp.PageIndex);/ This is a unit test for Bug #59916: RadDataPager: Assigning null to RadDataPager.Source / clears its PageSize./ <remarks>/ The problem arises from the fact that the DataPagerViewModel returns zero for PageSize / when its PagedSource is null. We have to create a local field to hold the page size in / cases when a null source is passed in the DataPagerViewModel's constructor. Otherwise / the view model will update the data pager and will set its PageSize to zero, thus / clearing the user-defined value./ </remarks>TestMethodpublic void Source_WhenSetToNull_ShouldNotClearPageSize()Mock<IPagedCollectionView> source = new Mock<IPagedCollectionView>(MockBehavior.Strict);int mockPageSize = 66;source.SetupGet(pcv => pcv.ItemCount).Returns(100);source.SetupGet(pcv => pcv.PageIndex).Returns(0);source.SetupSet(pcv => pcv.PageSize).Callback(v)=> mockPageSize = v);source.SetupGet(pcv => pcv.PageSize).Returns(mockPageSize);source.SetupGet(pcv => pcv.TotalItemCount).Returns(100);source.SetupGet(pcv => pcv.CanChangePage).Returns(true);this.rdp.Source = source.As<IEnumerable>().Object;Assert.AreEqual(66, this.rdp.PageSize);this.rdp.Source = null;Assert.AreEqual(66, this.rdp.PageSize);/TestMethod/public void RadDataPager_WhichIsBoundToTheItemsOfARadGridView_WhichIsBoundToADomainDataSource_ShouldNotThrow()/ / Simulate a pager bound to the Items prop of a grid./ / The DIC is using its InnerCollectionView in the beginning./ / The pager has page size 10, transfers this to the DIC and moves to page 0./ var dic = new DataItemCollection();/ this.rdp.PageSize = 10;/ this.rdp.Source = dic;/ / Currently the PageIndex of the pager is 0./ / When the grid is bound to a DDS, here is what happens/ / in the CollectionView property setter:/ / 1. We read what was the PageSize of the old view (InnerCollectionView)/ / and transfer it to the new view (DomainDataSourceView)/ / 2. We accept the new view and at the end of the setter we/ / raise property changed for all props connected to paging./ / One of them is PageIndex./ / 3. The pager is listening for these events./ / 4. Since the REAL DDS is very gay, it will have a page size of 10/ / because we set it to this and a page index of -1. Thus the DIC will/ / report a PageIndex of -1./ / 5. The pager receives this property changed about the PageIndex/ / and tries to update its PageIndex from 0 to -1./ / This -1 will break the pager's neck because you cannot set/ / the page index to -1 when the page size is greater than zero./ / All of this is because DDS reports PageSize=10 and PageIndex=-1./ / This will crash without the bug fix!/ var mock = new DomainDataSourceViewMock();/ mock.PageIndex = -1;/ mock.PageSize = 20;/ dic.SetItemsSource(mock);/ Assert.AreEqual(-1, this.rdp.PageIndex);/ Assert.AreEqual(10, this.rdp.PageSize);/ / If this were a real DDS it will move to page 0 / / a little after this. Let's simulate this as well./ mock.PageIndex = 0;/ Assert.AreEqual(0, this.rdp.PageIndex);/ Assert.AreEqual(10, this.rdp.PageSize);/ Emulates a DomainDataSourceView returning PageIndex -1 when its PageSize is > 0.public class DomainDataSourceViewMock : IPagedCollectionView, INotifyPropertyChanged, IEnumerablepublic event PropertyChangedEventHandler PropertyChanged;public event EventHandler<EventArgs> PageChanged;public event EventHandler<PageChangingEventArgs> PageChanging;private int pageSize;private int pageIndex;public bool CanChangePageget return true; public bool IsPageChangingget return false; public int ItemCountget return 0; public bool MoveToFirstPage()return true;public bool MoveToLastPage()return true;public bool MoveToNextPage()return true;public bool MoveToPage(int pageIndex)return true;public bool MoveToPreviousPage()return true;public int PageIndexget return this.pageIndex; setif (this.pageIndex != value)this.pageIndex = value;this.OnPropertyChanged("PageIndex");public int PageSizeget return this.pageSize; setif (value != this.pageSize)this.pageSize = value;this.OnPropertyChanged("PageSize");public int TotalItemCountgetreturn -1;public IEnumerator GetEnumerator()return Enumerable.Empty<object>().GetEnumerator();protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)PropertyChangedEventHandler handler = this.PropertyChanged;if (handler != null)handler(this, args);private void OnPropertyChanged(string propertyName)this.OnPropertyChanged(new PropertyChangedEventArgs(propertyName);/*/*系统设置 类/*/import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.OutputStream;import java.io.OutputStreamWriter;import java.io.Writer;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;import java.util.List;import javax.servlet.http.HttpServletRequest;public partial class System settings / Represents a container, holding the plot area axes related to secondary Y axes. public class AdditionalPlotAreaAxes2DContainer : ItemsControl, ILogicalItem / Identifies the <see cref="Orientation"/> dependency property. Description("Identifies the Orientation dependency property.") public static readonly DependencyProperty StackOrientationProperty = DependencyProperty.Register("StackOrientation",

    注意事项

    本文(11工程施工安全辅助设计管理系统 源代码.doc)为本站会员(sccc)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开