Example #1
0
 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);
 }
Example #2
0
 private void InitUc()
 {
     if (this._bNew)
     {
         this.splitContainer1.SplitterDistance = this.splitContainer1.Height;
         PropertyPageContent input = new PropertyPageContent(ModelContext.MetaModel.GetClassEx("DQDOSSIERPRINT"), null, ClientData.UserGlobalOption, null, this, null, PropertyPageMode.SINGLE);
         this.ucNewItem = new UCNewItem(false, true, false);
         this.ucNewItem.CreatedItem = null;
         this.ucNewItem.IsInSelfDefinePage = true;
         this.ucNewItem.SetInput(input);
         this.ucNewItem.Dock = DockStyle.Fill;
         this.groupBox3.Controls.Add(this.ucNewItem);
         this.tbCtrlTsdBom.TabPages.Remove(this.tPTsBomDocId);
     }
     else
     {
         this.ucAttr = new UclAttrs();
         this.ucAttr.Dock = DockStyle.Fill;
         this.groupBox3.Controls.Add(this.ucAttr);
         this.context.Option = ClientData.UserGlobalOption;
         this.ucAttr.SetContext(this.context);
         this.ucAttr.CurMeta = ModelContext.MetaModel.GetClassEx(this._theItem.ClassName);
         this.ucAttr.CurItem = this._theItem;
         this.ucAttr.isEditable = this._bEdit;
         this.ucAttr.Display(true);
     }
 }
Example #3
0
 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;
     }
 }
Example #4
0
 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();
 }