/// <summary> /// 进度计量 /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> /// <param name="arg1"></param> public void OnProgressMetering_Click(Object sender, Object arg, Object arg1) { GpNavBarTreeItem item = sender as GpNavBarTreeItem; //AppForm.CurrentForm.ChangeForm(item.Caption, new HD.MeteringPayment.Module.Forms.ProgressMeteringMng.PMListControl(), item.Caption); AppForm.CurrentForm.ChangeForm(item.Caption, new Forms.ContractBoqMng.BidTreeSelectControl(3), item.Caption); }
/// <summary> /// 计量报表 /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> /// <param name="arg1"></param> public void OnProgressMeteringRpt_Click(Object sender, Object arg, Object arg1) { GpNavBarTreeItem item = sender as GpNavBarTreeItem; AppForm.CurrentForm.ChangeForm(item.Caption, new HD.MeteringPayment.Module.Forms.MeteringRptMng.MeteringRptLstControl(AppConfig.SelectProject.ProjectNo, AppConfig.SelectProject.ProjectName), item.Caption); }
void RefreshNodeClick(GpNavBarTreeItem item) { if (item != null && item.MenuClick != null) { item.MenuClick(item, "", item.ItemTag); } }
/// <summary> /// WBS清单 /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> /// <param name="arg1"></param> public void OnWBSMng_Click(Object sender, Object arg, Object arg1) { GpNavBarTreeItem item = sender as GpNavBarTreeItem; AppForm.CurrentForm.ChangeForm(item.Caption, new HD.MeteringPayment.Module.Forms.WBSBoqMng.frmPrjBoq(AppConfig.SelectProject.ProjectNo, AppConfig.SelectProject.ProjectName), item.Caption); }
void tree_MouseClick(object sender, MouseEventArgs e) { TreeList tree = sender as TreeList; TreeListHitInfo hitInfo = tree.CalcHitInfo(new Point(e.X, e.Y)); if (hitInfo != null && hitInfo.Node != null) { GpNavBarTreeItem item = hitInfo.Node.Tag as GpNavBarTreeItem; RefreshNodeClick(item); } }
public void LoadTreeMenu(GpNavBarTreeMenu menu) { nvbrcntrlLeft.Groups.Clear(); nvbrcntrlLeft.Items.Clear(); NavBarGroup grpHeader = nvbrcntrlLeft.Groups.Add(); grpHeader.Caption = menu.Caption; grpHeader.GroupStyle = NavBarGroupStyle.ControlContainer; TreeList tree = new TreeList(); tree.RowHeight = 30; NavBarGroupControlContainer container = new NavBarGroupControlContainer(); container.Controls.Add(tree); grpHeader.ControlContainer = container; container.Padding = new System.Windows.Forms.Padding(4); tree.Dock = DockStyle.Fill; tree.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; tree.MouseClick += new MouseEventHandler(tree_MouseClick); tree.Appearance.SelectedRow.BackColor = Color.FromArgb(53, 153, 255); tree.OptionsView.ShowHorzLines = false; tree.OptionsView.ShowVertLines = false; tree.OptionsBehavior.Editable = false; tree.OptionsView.ShowRoot = false; tree.OptionsView.ShowColumns = false; tree.OptionsView.ShowIndicator = false; tree.SelectImageList = imageCollection1; TreeListColumn col = tree.Columns.Add(); col.Visible = true; col.Width = 150; col.FieldName = "test"; col.Caption = "test"; for (int i = 0; i < menu.Items.Count; i++) { GpNavBarTreeItem item = menu.Items[i]; TreeListNode childNode = tree.AppendNode(new Object[] { item.Caption }, -1); childNode.Tag = item; if (item.IsFolder) { for (int j = 0; j < item.Items.Count; j++) { LoadItem(childNode, item.Items[j]); } } if (tree.SelectImageList != null) { childNode.ImageIndex = item.IsFolder ? 0 : 1; childNode.SelectImageIndex = item.IsFolder ? 0 : 1; } } tree.ExpandAll(); }
public BaseDataMngMenu() { GpNavBarTreeItem subUser = new GpNavBarTreeItem("管理员设置"); Items.Add(subUser); GpNavBarTreeItem subUser1 = new GpNavBarTreeItem("标段管理员设置", subUser1_LinkClicked); GpNavBarTreeItem subUser2 = new GpNavBarTreeItem("监理管理员设置", subUser2_LinkClicked); GpNavBarTreeItem subUser3 = new GpNavBarTreeItem("业主管理员设置", subUser3_LinkClicked); subUser.Items.Add(subUser1); subUser.Items.Add(subUser2); subUser.Items.Add(subUser3); }
public FGSMeteringPaymentMenu() { GpNavBarTreeItem subBasicInfo = new GpNavBarTreeItem("基础信息"); Items.Add(subBasicInfo); GpNavBarTreeItem subBasicInfo1 = new GpNavBarTreeItem("合同清单", OnContractBoqMng_Click); GpNavBarTreeItem subBasicInfo2 = new GpNavBarTreeItem("WBS清单", OnWBSMng_Click); GpNavBarTreeItem subBasicInfo3 = new GpNavBarTreeItem("进度计量", OnProgressMetering_Click); GpNavBarTreeItem subBasicInfo4 = new GpNavBarTreeItem("计量报表", OnProgressMeteringRpt_Click); subBasicInfo.Items.Add(subBasicInfo1); subBasicInfo.Items.Add(subBasicInfo2); subBasicInfo.Items.Add(subBasicInfo3); subBasicInfo.Items.Add(subBasicInfo4); }
private void LoadItem(TreeListNode node, GpNavBarTreeItem item) { TreeListNode childNode = node.Nodes.Add(new Object[] { item.Caption }); childNode.Tag = item; if (item.IsFolder) { for (int i = 0; i < item.Items.Count; i++) { LoadItem(childNode, item.Items[i]); } } if (childNode.TreeList.SelectImageList != null) { childNode.ImageIndex = item.IsFolder ? 0 : 1; childNode.SelectImageIndex = item.IsFolder ? 0 : 1; } }
/// <summary> /// 计量报表 /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> /// <param name="arg1"></param> public void OnProgressMeteringRpt_Click(Object sender, Object arg, Object arg1) { GpNavBarTreeItem item = sender as GpNavBarTreeItem; AppForm.CurrentForm.ChangeForm(item.Caption, new Forms.ContractBoqMng.BidTreeSelectControl(4), item.Caption); }
/// <summary> /// 业主 /// </summary> /// <param name="sender"></param> /// <param name="arg"></param> /// <param name="arg1"></param> public void subUser3_LinkClicked(Object sender, Object arg, Object arg1) { GpNavBarTreeItem item = sender as GpNavBarTreeItem; AppForm.CurrentForm.ChangeForm(item.Caption, new frmGSManager(), item.Caption); }