private void ComboBox_Segments_DropDown(object sender, EventArgs e) { ComboBox_Segments.Items.Clear(); List <Prjsct> PrjsctList = DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code); ComboBox_Segments.Items.Add("全部标段"); ComboBox_Segments.Items.AddRange(PrjsctList.ToArray()); }
private void SetTreeSource() { List <Prjsct> projects = new List <Prjsct>(); projects.AddRange(DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code)); projects.Insert(0, new Prjsct() { PrjsctName = "全部", PrjsctCode = "#" }); Section.DataSource = projects; }
private void LoadSegments() { if (Yqun.Common.ContextCache.ApplicationContext.Current.InCompany.Type == "@unit_施工单位") { UserType = 0; } else if (Yqun.Common.ContextCache.ApplicationContext.Current.InCompany.Type == "@unit_监理单位") { UserType = 1; } else { UserType = 1; } ComboBox_Segments.Items.Clear(); List <Prjsct> PrjsctList = DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code); ComboBox_Segments.Items.Add("全部标段"); ComboBox_Segments.Items.AddRange(PrjsctList.ToArray()); ComboBox_Segments.SelectedIndex = 0; }
private void SetTreeValues(Prjsct section, Orginfo unit, PrjFolder room) { Section.SelectedIndexChanged -= new EventHandler(Section_SelectedIndexChanged); Unit.SelectedIndexChanged -= new EventHandler(Unit_SelectedIndexChanged); TestRoom.SelectedIndexChanged -= new EventHandler(TestRoom_SelectedIndexChanged); Section.DataSource = DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code); Section.Text = section.PrjsctName; Unit.DataSource = DepositoryOrganInfo.QueryOrgans(section.PrjsctCode, ""); Unit.Text = unit.DepName; TestRoom.DataSource = DepositoryFolderInfo.QueryPrjFolders(unit.DepCode, ""); TestRoom.SelectedItem = room; TestRoom.SelectedValue = room.FolderCode; TestRoom.SelectedText = room.FolderName; TestRoom.Text = room.FolderName; Section.SelectedIndexChanged += new EventHandler(Section_SelectedIndexChanged); Unit.SelectedIndexChanged += new EventHandler(Unit_SelectedIndexChanged); TestRoom.SelectedIndexChanged += new EventHandler(TestRoom_SelectedIndexChanged); }
private void QueryReportEvaluateDialog_Load(object sender, EventArgs e) { if (Yqun.Common.ContextCache.ApplicationContext.Current.InCompany.Type == "@unit_施工单位") { userType = 0; } else if (Yqun.Common.ContextCache.ApplicationContext.Current.InCompany.Type == "@unit_监理单位") { userType = 1; } else { userType = 1; } FpSpread_Info.Rows.Count = 0; FpSpread_Info.Columns.Count = 19; FpSpread_Info.ColumnHeader.Cells[0, 0].Text = "是否合格"; FpSpread_Info.ColumnHeader.Cells[0, 1].Text = "标段"; FpSpread_Info.ColumnHeader.Cells[0, 2].Text = "单位"; FpSpread_Info.ColumnHeader.Cells[0, 3].Text = "试验室"; FpSpread_Info.ColumnHeader.Cells[0, 4].Text = "试验报告"; FpSpread_Info.ColumnHeader.Cells[0, 5].Text = "委托编号"; FpSpread_Info.ColumnHeader.Cells[0, 6].Text = "报告编号"; FpSpread_Info.ColumnHeader.Cells[0, 7].Text = "报告日期"; FpSpread_Info.ColumnHeader.Cells[0, 8].Text = "试验项目"; FpSpread_Info.ColumnHeader.Cells[0, 9].Text = "标准值"; FpSpread_Info.ColumnHeader.Cells[0, 10].Text = "实测值"; FpSpread_Info.ColumnHeader.Cells[0, 11].Text = "原因分析"; FpSpread_Info.ColumnHeader.Cells[0, 12].Text = "监理意见"; FpSpread_Info.ColumnHeader.Cells[0, 13].Text = "处理结果"; FpSpread_Info.ColumnHeader.Cells[0, 14].Text = "合格时间"; FpSpread_Info.ColumnHeader.Cells[0, 15].Text = "申请人"; FpSpread_Info.ColumnHeader.Cells[0, 16].Text = "申请时间"; FpSpread_Info.ColumnHeader.Cells[0, 17].Text = "批准人"; FpSpread_Info.ColumnHeader.Cells[0, 18].Text = "批准时间"; FpSpread_Info.Columns[0].Width = 60; FpSpread_Info.Columns[1].Width = 60; FpSpread_Info.Columns[2].Width = 100; FpSpread_Info.Columns[3].Width = 120; FpSpread_Info.Columns[4].Width = 200; FpSpread_Info.Columns[5].Width = 100; FpSpread_Info.Columns[6].Width = 100; FpSpread_Info.Columns[7].Width = 70; FpSpread_Info.Columns[8].Width = 180; FpSpread_Info.Columns[9].Width = 80; FpSpread_Info.Columns[10].Width = 60; FpSpread_Info.Columns[11].Width = 200; FpSpread_Info.Columns[12].Width = 200; FpSpread_Info.Columns[13].Width = 80; FpSpread_Info.Columns[14].Width = 80; FpSpread_Info.Columns[15].Width = 80; FpSpread_Info.Columns[16].Width = 80; FpSpread_Info.Columns[17].Width = 80; FpSpread_Info.Columns[18].Width = 80; FarPoint.Win.Spread.CellType.DateTimeCellType datetime = new FarPoint.Win.Spread.CellType.DateTimeCellType(); datetime.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDate; FpSpread_Info.Columns[7].CellType = datetime; FpSpread_Info.Columns[14].CellType = datetime; FpSpread_Info.Columns[16].CellType = datetime; FpSpread_Info.Columns[18].CellType = datetime; if (Yqun.Common.ContextCache.ApplicationContext.Current.IsAdministrator) { FpSpread_Info.Columns[14].Visible = true; FpSpread_Info.Columns[15].Visible = true; FpSpread_Info.Columns[16].Visible = true; FpSpread_Info.Columns[17].Visible = true; FpSpread_Info.Columns[18].Visible = true; } else { FpSpread_Info.Columns[14].Visible = false; FpSpread_Info.Columns[15].Visible = false; FpSpread_Info.Columns[16].Visible = false; FpSpread_Info.Columns[17].Visible = false; FpSpread_Info.Columns[18].Visible = false; } ComboBox_Segments.Items.Clear(); List <Prjsct> PrjsctList = DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code); ComboBox_Segments.Items.Add("全部标段"); ComboBox_Segments.Items.AddRange(PrjsctList.ToArray()); if (ComboBox_Segments.Items.Count > 0) { ComboBox_Segments.SelectedIndex = 0; } Button_Export.Visible = true;// Yqun.Common.ContextCache.ApplicationContext.Current.IsAdministrator ||Yqun.Common.ContextCache.ApplicationContext.Current.UserCode.Length == 8; if (Yqun.Common.ContextCache.ApplicationContext.Current.UserCode == "-2") { btnTestUpload.Visible = true; btnTestSMSSend.Visible = true; } else { btnTestUpload.Visible = false; btnTestSMSSend.Visible = false; } }
public ModifyDevice() { InitializeComponent(); Section.DataSource = DepositoryPrjsctInfo.QueryPrjscts(Yqun.Common.ContextCache.ApplicationContext.Current.InProject.Code); }