示例#1
0
        public frmEH_Launch(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AP_INV_HEADER_ID)
        {
            this.Connection = Connection;
            this.DevXMgr    = DevXMgr;
            InitializeComponent();

            ucHistoryView1              = new SubmissionHistory.ucHistoryView();
            ucHistoryView1.Dock         = DockStyle.Fill;
            ucHistoryView1.Parent       = this;
            ucHistoryView1.TypeID       = CONST_SUB_PAYMENT_REQUEST;
            ucHistoryView1.HMConnection = Connection;
            ucHistoryView1.TUC_DevXMgr  = DevXMgr;

            object CLog_FieldLink_ID = Connection.SQLExecutor.ExecuteScalar("exec dbo.sp_WS_ChatFieldLinkGetID 'WS_INV_HEADER.WS_INV_ID', 'PayApproval'", Connection.TRConnection);

            ucHistoryView1.ChatFieldLink = Convert.ToInt32(CLog_FieldLink_ID);

            string sSQL       = @"select ws_inv_id from ws_inv_header where ap_inv_header_id=" + AP_INV_HEADER_ID;
            object oWS_INV_ID = Connection.SQLExecutor.ExecuteScalar(sSQL, Connection.TRConnection);

            if (oWS_INV_ID == null || oWS_INV_ID == DBNull.Value)
            {
                oWS_INV_ID = -1;
            }
            ucHistoryView1.DetailID = Convert.ToInt32(oWS_INV_ID);
            ucHistoryView1.LoadHistory();
        }
示例#2
0
 public void Refresh_EventHistoryView(int ws_pcpo_id)
 {
     if (_ucEventHistoryView != null)
     {
         _ucEventHistoryView.DetailID = ws_pcpo_id;
         _ucEventHistoryView.LoadHistory();
     }
 }