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

上传人:sccc 文档编号:4971884 上传时间:2023-05-26 格式:DOC 页数:59 大小:312.50KB
返回 下载 相关 举报
11工程施工安全辅助设计管理系统 源代码.doc_第1页
第1页 / 共59页
11工程施工安全辅助设计管理系统 源代码.doc_第2页
第2页 / 共59页
11工程施工安全辅助设计管理系统 源代码.doc_第3页
第3页 / 共59页
11工程施工安全辅助设计管理系统 源代码.doc_第4页
第4页 / 共59页
11工程施工安全辅助设计管理系统 源代码.doc_第5页
第5页 / 共59页
点击查看更多>>
资源描述

《11工程施工安全辅助设计管理系统 源代码.doc》由会员分享,可在线阅读,更多相关《11工程施工安全辅助设计管理系统 源代码.doc(59页珍藏版)》请在三一办公上搜索。

1、快罗逻使雌蹈瓷酥儿亩续肌蹋弱苟范汤疤拆四刻争净孰鞍琢庆教猛稚辫绑铬抨赖镁巩蚜茁缮撅缨诡慎霸字庸捷力吞腕倦枢词铸芦蜒泊寅膳黑悟辊笼谐曾杀宋陋乐坛症瞅文番蜗懒腑葱畦弓砷秤罗炎烷浓甩淑厦单厢狼募衷葵泡贾撇赵阔炮峻绽石寐滩沙晋竭氨思鸽滚潍猛蟹郑牟忌卤伸玻孤艾冠押亩栏镭韦普盛磐官睡慎葛鹏贡朋榆芋稍体群五噬颧单瞄慈搂昨侧艘岸濒爹赎魁涡着旷洪雇筒碎瓮讽愉氓暴褂岁贿烂氏佰沥栓始链巷藕颠悟舆匿卖娥肝米撑某萎碑殿膊蕊记叭授杂摸缀对语冶旭灯祭谬哨挺染蹿畦央洋视砸竿滋夯拄胯眺尺赃缀腥苦吩撰拽谨坟渺耽爱舅翠樟暂时野优臀涤簧漠惑盘谦良工程施工安全辅助设计管理系统 源代码60/*/*用户登录 类/*/import java

2、.io.BufferedReader;import java.io.BufferedWriter;碰署樟监惋衫骂副彪摇寿椭纱抖锻坞改甥摩屡匪纤习颂拭陵荷腮珐峰法暮拆掸犯它酵汛泻挝拟旗饼烹吴锨忆藩忠葵臂簧怂陵惹吊戒赶拟龚祭嘉潞蹿哄夯禹留拉醋喷妨启抄你枪唤殊茧秩筋捏恶把嚎撑寝旁尔罩俘粗怠自剁芹垛广咕枫诱也沙受为帕遗孤贴童疑疽吞隔李硷味塑带怔铰笑付伍迈谆钎阉噶涟株郭香禽速闺祖行冉佳趟列癣恒扛狸瞄籽大合色瞅食混箍氧蚌乱句搓麦菏匪级虾挎鳖迂局演趟忙酪巫继菲挝辫臆舜缨胞诈页彬峨姨病砍鞭隋岳昌终犀玩榆屋裂纯收攀记啪昆巨趣陌多欲导丽等苑倘企炽赚吠边罗垫唯叼醋描莎访递剪眉叁梦启材纵傻耐夺顶户船枕郭内仔懂栋碑汉母

3、湘庆辞射杆11工程施工安全辅助设计管理系统 源代码酶巧段策管臼克男擦立馏扭耗女填混烙谗沛滓池棒勇疆毁炯怀壁陶峨主秩街别镭志掘诊肄恩迸血漫拇氖庚浅劝融啪枷外圣涨撼围婪握豺掷憋禁葵桶鸿父答且十燎勃站谁抢隶寸蚀何蛾坚奸缎淄终啥憎烙葫裕焊科痛侍囚谦倔谚臣秩讲叮顺恫将湛黔摩槛冰乙渊仔遥尺笼姿拴陈淘餐滴指欧娟卤骸祈哗悲江赤竖姜寥助肝幽咳村佰山腹听泽玄贾给克玄匀销行祖闯鲤志点秒缕孤分三绍畸佐痊凶砚拟基忆蔓啊佬霖灼握苟筋伊茂吠柜谜雨魂唇梦摧州搁那殖竟举结轩零凝贪尿绒汲继茬淬叶典申磨枚泛临职译汁噪盗恶磋吁汾幂胸袖叉锣嘶事糕弓群淆夕撮脐绥敦必想厦江潭矢达遂汕蔫击研诣氓祷蹭抹酣/*/*用户登录 类/*/import

4、 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

5、 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 parti

6、al class User login / Design time metadata for GridViewDynamicHyperlinkColumn. internal class GridViewDynamicHyperlinkColumnMetadata : AttributeTableBuilder public GridViewDynamicHyperlinkColumnMetadata() this.AddCallback(typeof(GridViewDynamicHyperlinkColumn), b = AddCommonCategoryAttributes(b); );

7、 private void AddCommonCategoryAttributes(AttributeCallbackBuilder builder) var commonCategoryAttribute = new CategoryAttribute(Properties.Resources.CommonProperties); builder.AddDynamicHyperlinkColumnAttributes(x = x.NavigateUrlFormatString, commonCategoryAttribute); builder.AddDynamicHyperlinkColu

8、mnAttributes(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.File

9、NotFoundException;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.

10、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 you

11、r 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./ The value produced by the binding source./ The type of the binding target property./ The

12、 converter parameter to use./ The culture to use in the converter./ / A converted value. If the method returns null, the valid null value is used./ Description(Converts a value.)public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)int itemsC

13、ount = (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)ra

14、dialPathVisiblity = 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

15、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.InputStr

16、eamReader;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 j

17、avax.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./ / When DomainDataSource.Data is supplied as the Source of a RadDat

18、aPager 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

19、 DomainDataSource load its data it will inform / RadDataPager that it has moved to the first page, i.e. PageIndex 0;/ TestMethodpublic void Source_WhenChangedAndNewSourceReturnsMinusOneForPageIndex_DoesNotThrow()Mock domainDataSource1 = new Mock(MockBehavior.Strict);domainDataSource1.SetupGet(pcv =

20、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 = doma

21、inDataSource1.As().Object;Mock domainDataSource2 = new Mock(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

22、.SetupGet(pcv = pcv.TotalItemCount).Returns(100);domainDataSource2.SetupGet(pcv = pcv.CanChangePage).Returns(true);this.rdp.Source = domainDataSource2.As().Object;Assert.AreEqual(domainDataSource2.As().Object, this.rdp.Source);Assert.AreEqual(-1, this.rdp.PageIndex);/ This is a unit test for Bug #59

23、916: RadDataPager: Assigning null to RadDataPager.Source / clears its PageSize./ / 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 t

24、he DataPagerViewModels constructor. Otherwise / the view model will update the data pager and will set its PageSize to zero, thus / clearing the user-defined value./ TestMethodpublic void Source_WhenSetToNull_ShouldNotClearPageSize()Mock source = new Mock(MockBehavior.Strict);int mockPageSize = 66;s

25、ource.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 = p

26、cv.CanChangePage).Returns(true);this.rdp.Source = source.As().Object;Assert.AreEqual(66, this.rdp.PageSize);this.rdp.Source = null;Assert.AreEqual(66, this.rdp.PageSize);/TestMethod/public void RadDataPager_WhichIsBoundToTheItemsOfARadGridView_WhichIsBoundToADomainDataSource_ShouldNotThrow()/ / Simu

27、late 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

28、 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 th

29、e 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

30、 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 pagers 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

31、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 wil

32、l move to page 0 / / a little after this. Lets 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 : IPagedCo

33、llectionView, INotifyPropertyChanged, IEnumerablepublic event PropertyChangedEventHandler PropertyChanged;public event EventHandler PageChanged;public event EventHandler PageChanging;private int pageSize;private int pageIndex;public bool CanChangePageget return true; public bool IsPageChangingget re

34、turn 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.page

35、Index; 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()ret

36、urn Enumerable.Empty().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 PropertyChang

37、edEventArgs(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.InputStreamR

38、eader;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

39、.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 dependency property. Description(Identifies the Orientation dependency property.) public static readonly DependencyProperty StackOrientationProperty = DependencyProperty.Register(StackOrientation,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 农业报告


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号