Beispiel #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();
        }
Beispiel #2
0
        private void InitializeEventHistoryView()
        {
            string cmdText = @"EXEC sp_WS_ChatFieldLinkGetID 'WS_PCPO_Hdr.ws_pcpo_id', 'PO Approval' ";

            _ucEventHistoryView               = new SubmissionHistory.ucHistoryView();
            _ucEventHistoryView.TypeID        = 23;
            _ucEventHistoryView.HMConnection  = _HMCon;
            _ucEventHistoryView.ChatFieldLink = Convert.ToInt32(_HMCon.SQLExecutor.ExecuteScalar(cmdText, _HMCon.TRConnection));
            _ucEventHistoryView.TUC_DevXMgr   = _TUC;
            _ucEventHistoryView.Dock          = DockStyle.Fill;
            _ucEventHistoryView.Parent        = xtabPageEventHistory;
        }