public UcTsdItem(string bpmName) { this._isChg = false; this._theItem = null; this.context = new ObjectNavigateContext(); this.hsCols = null; this.input = null; this.lstDocCode = null; this.lstOrder = null; this.lstUnits = null; this.ucAttr = null; this.ucNewItem = null; this._bpmName = ""; this.components = null; this.InitializeComponent(); this._bNew = true; this.lstDocCode = new ArrayList(); this.resWkTsd = new ResWkInfo(); this.resWkTsd.Dock = DockStyle.Fill; this.panel2.Controls.Add(this.resWkTsd); this.SetBtnAndPnlStatue(); this.InitUc(); this.InitIvwRelItem(); this.InitLvwBom(); if (!string.IsNullOrEmpty(bpmName)) { this._bpmName = bpmName; } }
private void InitUc() { this.hsCols1 = PlArchivManage.Agent.GetViewOfCol("发放明细", out this.lstOrder1, out this.hsColWide1); this.hsCols2 = PlArchivManage.Agent.GetViewOfCol("回收明细", out this.lstOrder2, out this.hsColWide2); PlArchivManage.SetCol(this.hsCols1, this.lvwSentBom, "SentBom", this.lstOrder1, this.hsColWide1); PlArchivManage.SetCol(this.hsCols2, this.lvwRecycleBom, "SentBom", this.lstOrder2, this.hsColWide2); PlArchivManage.SetSigner(this.txtSigner); PlArchivManage.SetSigner(this.txtSingerR); this.tstype = this._theItem.Iteration.GetAttrValue("TSTYPE").ToString(); if (this.tstype == "回收") { this.tCtrlSentBom.TabPages.Remove(this.tpSentBom); } else { this.SetDocIds(this.GetCurRelItems, this.txtDocCode); this.RefreshBoms(); } if ((this.tstype == "新发") || (this.tstype == "补发")) { this.tCtrlSentBom.TabPages.Remove(this.tpRecyclebom); } else { this.SetDocIds(this.GetCurRelItemsR, this.txtDocCodeR); this.RefreshRrvBoms(); } ObjectNavigateContext context = new ObjectNavigateContext(); this.ucAttr = new UclAttrs(); this.ucAttr.Dock = DockStyle.Fill; this.grpSentattr.Controls.Add(this.ucAttr); context.Option = ClientData.UserGlobalOption; this.ucAttr.CurMeta = ModelContext.MetaModel.GetClassEx(this._theItem.ClassName); this.ucAttr.SetContext(context); this.ucAttr.CurItem = this._theItem; this.ucAttr.isEditable = false; this.ucAttr.Display(true); }
public UcTsdItem(DEBusinessItem item) { this._isChg = false; this._theItem = null; this.context = new ObjectNavigateContext(); this.hsCols = null; this.input = null; this.lstDocCode = null; this.lstOrder = null; this.lstUnits = null; this.ucAttr = null; this.ucNewItem = null; this._bpmName = ""; this.components = null; this.InitializeComponent(); this._bNew = item == null; if (item != null) { PlArchivManage.GetRelListOfDEBizItem(item, ConstAm.TDSBOM_RELCLASS); this._theItem = item; } this.lstDocCode = new ArrayList(); this.resWkTsd = new ResWkInfo(); this.resWkTsd.Dock = DockStyle.Fill; this.panel2.Controls.Add(this.resWkTsd); this.SetBtnAndPnlStatue(); this.InitUc(); this.InitIvwRelItem(); this.InitLvwBom(); }