Exemplo n.º 1
0
 private void InitTsdlvw()
 {
     this.hsCols = PlArchivManage.Agent.GetViewOfCol("托晒单", out this.lstOrder, out this.hsColWide);
     PlArchivManage.SetCol(this.hsCols, this.lvwTSD, "TSD", this.lstOrder, this.hsColWide);
     this.lstCando = new ArrayList();
     this.GetCando();
     this.d_AfterIterationUpdated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterMasterUpdated    = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterDeleted          = new PLMDelegate2(this.AfterDeleted);
     this.d_AfterRevisionCreated  = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterReleased         = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoNewRevision  = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckIn          = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckOut         = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoCheckOut     = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterAbandon          = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoAbandon      = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.Lvw_AfterTabClose       = new PLMSimpleDelegate(this.CloseTsdTab);
     this.Lvw_AfterTsdCreate      = new PLMSimpleDelegate(this.ItemCreated);
     BizItemHandlerEvent.Instance.D_AfterReleased         = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterReleased, this.d_AfterReleased);
     BizItemHandlerEvent.Instance.D_AfterRevisionCreated  = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterRevisionCreated, this.d_AfterRevisionCreated);
     BizItemHandlerEvent.Instance.D_AfterUndoNewRevision  = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoNewRevision, this.d_AfterUndoNewRevision);
     BizItemHandlerEvent.Instance.D_AfterCheckIn          = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckIn, this.d_AfterCheckIn);
     BizItemHandlerEvent.Instance.D_AfterCheckOut         = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckOut, this.d_AfterCheckOut);
     BizItemHandlerEvent.Instance.D_AfterUndoCheckOut     = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoCheckOut, this.d_AfterUndoCheckOut);
     BizItemHandlerEvent.Instance.D_AfterIterationUpdated = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterIterationUpdated, this.d_AfterIterationUpdated);
     BizItemHandlerEvent.Instance.D_AfterMasterUpdated    = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterMasterUpdated, this.d_AfterMasterUpdated);
     BizItemHandlerEvent.Instance.D_AfterDeleted          = (PLMDelegate2)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterDeleted, this.d_AfterDeleted);
     BizItemHandlerEvent.Instance.D_AfterUndoAbandon      = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoAbandon, this.d_AfterUndoAbandon);
     BizItemHandlerEvent.Instance.D_AfterAbandon          = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterAbandon, this.d_AfterAbandon);
     DelegatesOfAm.Instance.D_AfterTsdTabClose            = (PLMSimpleDelegate)Delegate.Combine(DelegatesOfAm.Instance.D_AfterTsdTabClose, this.Lvw_AfterTabClose);
     DelegatesOfAm.Instance.D_AfterTsdCreate = (PLMSimpleDelegate)Delegate.Combine(DelegatesOfAm.Instance.D_AfterTsdCreate, this.Lvw_AfterTsdCreate);
 }
Exemplo n.º 2
0
 private void InitTsdlvw()
 {
     this.hsCols = PlArchivManage.Agent.GetViewOfCol("托晒单", out this.lstOrder, out this.hsColWide);
     PlArchivManage.SetCol(this.hsCols, this.lvwTSD, "TSD", this.lstOrder, this.hsColWide);
     this.lstCando = new ArrayList();
     this.GetCando();
     this.d_AfterIterationUpdated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterMasterUpdated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterDeleted = new PLMDelegate2(this.AfterDeleted);
     this.d_AfterRevisionCreated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterReleased = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoNewRevision = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckIn = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckOut = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoCheckOut = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterAbandon = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoAbandon = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.Lvw_AfterTabClose = new PLMSimpleDelegate(this.CloseTsdTab);
     this.Lvw_AfterTsdCreate = new PLMSimpleDelegate(this.ItemCreated);
     BizItemHandlerEvent.Instance.D_AfterReleased = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterReleased, this.d_AfterReleased);
     BizItemHandlerEvent.Instance.D_AfterRevisionCreated = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterRevisionCreated, this.d_AfterRevisionCreated);
     BizItemHandlerEvent.Instance.D_AfterUndoNewRevision = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoNewRevision, this.d_AfterUndoNewRevision);
     BizItemHandlerEvent.Instance.D_AfterCheckIn = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckIn, this.d_AfterCheckIn);
     BizItemHandlerEvent.Instance.D_AfterCheckOut = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckOut, this.d_AfterCheckOut);
     BizItemHandlerEvent.Instance.D_AfterUndoCheckOut = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoCheckOut, this.d_AfterUndoCheckOut);
     BizItemHandlerEvent.Instance.D_AfterIterationUpdated = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterIterationUpdated, this.d_AfterIterationUpdated);
     BizItemHandlerEvent.Instance.D_AfterMasterUpdated = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterMasterUpdated, this.d_AfterMasterUpdated);
     BizItemHandlerEvent.Instance.D_AfterDeleted = (PLMDelegate2)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterDeleted, this.d_AfterDeleted);
     BizItemHandlerEvent.Instance.D_AfterUndoAbandon = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoAbandon, this.d_AfterUndoAbandon);
     BizItemHandlerEvent.Instance.D_AfterAbandon = (PLMBizItemDelegate)Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterAbandon, this.d_AfterAbandon);
     DelegatesOfAm.Instance.D_AfterTsdTabClose = (PLMSimpleDelegate)Delegate.Combine(DelegatesOfAm.Instance.D_AfterTsdTabClose, this.Lvw_AfterTabClose);
     DelegatesOfAm.Instance.D_AfterTsdCreate = (PLMSimpleDelegate)Delegate.Combine(DelegatesOfAm.Instance.D_AfterTsdCreate, this.Lvw_AfterTsdCreate);
 }
Exemplo n.º 3
0
 private void Init()
 {
     PlArchivManage.SetComBoxItem("托晒方式", this.txtTsType, "", false);
     PlArchivManage.SetComBoxItem("路线部门", this.txtUnit, "", false);
     PlArchivManage.SetComBoxItem("收发状态", this.txtIsSent, "未收发", false);
     DateTime time = DateTime.Now.AddDays(-7.0);
     this.dTFromTime.Value = new DateTime(time.Year, time.Month, time.Day);
     DateTime time2 = this.dTToTime.Value.AddDays(15.0).AddSeconds(-1.0);
     this.dTToTime.Value = time2;
     this.hsCols = PlArchivManage.Agent.GetViewOfCol("收发", out this.lstOrder, out this.hswide);
     PlArchivManage.SetCol(this.hsCols, this.lvwSentLst, "Sent", this.lstOrder, this.hswide);
     this.d_AfterIterationUpdated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterMasterUpdated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterDeleted = new PLMDelegate2(this.AfterDeleted);
     this.d_AfterRevisionCreated = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterReleased = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoNewRevision = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckIn = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterCheckOut = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoCheckOut = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterAbandon = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterUndoAbandon = new PLMBizItemDelegate(this.AfterItemUpdated);
     this.d_AfterTabClose = new PLMSimpleDelegate(this.CloseTsdTab);
     BizItemHandlerEvent.Instance.D_AfterReleased = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterReleased, this.d_AfterReleased);
     BizItemHandlerEvent.Instance.D_AfterRevisionCreated = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterRevisionCreated, this.d_AfterRevisionCreated);
     BizItemHandlerEvent.Instance.D_AfterUndoNewRevision = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoNewRevision, this.d_AfterUndoNewRevision);
     BizItemHandlerEvent.Instance.D_AfterCheckIn = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckIn, this.d_AfterCheckIn);
     BizItemHandlerEvent.Instance.D_AfterCheckOut = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterCheckOut, this.d_AfterCheckOut);
     BizItemHandlerEvent.Instance.D_AfterUndoCheckOut = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoCheckOut, this.d_AfterUndoCheckOut);
     BizItemHandlerEvent.Instance.D_AfterIterationUpdated = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterIterationUpdated, this.d_AfterIterationUpdated);
     BizItemHandlerEvent.Instance.D_AfterMasterUpdated = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterMasterUpdated, this.d_AfterMasterUpdated);
     BizItemHandlerEvent.Instance.D_AfterDeleted = (PLMDelegate2) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterDeleted, this.d_AfterDeleted);
     BizItemHandlerEvent.Instance.D_AfterUndoAbandon = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterUndoAbandon, this.d_AfterUndoAbandon);
     BizItemHandlerEvent.Instance.D_AfterAbandon = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterAbandon, this.d_AfterAbandon);
     DelegatesOfAm.Instance.D_AfterSentTabClose = (PLMSimpleDelegate) Delegate.Combine(DelegatesOfAm.Instance.D_AfterSentTabClose, this.d_AfterTabClose);
 }
Exemplo n.º 4
0
 private void InitPrintlvw()
 {
     this.hsCols = PlArchivManage.Agent.GetViewOfCol("打印", out this.lstOrder, out this.hsColWide);
     PlArchivManage.SetCol(this.hsCols, this.lvwPrintLst, "Print", this.lstOrder, this.hsColWide);
     this.lstSchPrint = new ArrayList();
     this.d_AfterTabClose = new PLMSimpleDelegate(this.AfterPrintCloseTab);
     this.d_AfterIterationUpdated = new PLMBizItemDelegate(this.AfterTsdUpdate);
     this.d_AfterReleased = new PLMBizItemDelegate(this.AfterTsdUpdate);
     this.d_AfterDeleted = new PLMDelegate2(this.AfterTsdDel);
     DelegatesOfAm.Instance.D_AfterPrintTabClose = (PLMSimpleDelegate) Delegate.Combine(DelegatesOfAm.Instance.D_AfterPrintTabClose, this.d_AfterTabClose);
     BizItemHandlerEvent.Instance.D_AfterIterationUpdated = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterIterationUpdated, this.d_AfterIterationUpdated);
     BizItemHandlerEvent.Instance.D_AfterReleased = (PLMBizItemDelegate) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterReleased, this.d_AfterReleased);
     BizItemHandlerEvent.Instance.D_AfterDeleted = (PLMDelegate2) Delegate.Combine(BizItemHandlerEvent.Instance.D_AfterDeleted, this.d_AfterDeleted);
     if (PLGrantPerm.CanDoClassOperation(ClientData.LogonUser.Oid, "DQDOSSIERPRINT", Guid.Empty, "ClaRel_DOWNLOAD") == 1)
     {
         this.canOutput = true;
     }
 }