コード例 #1
0
 private void RunSetups()
 {
     TR_Conn.ConnectionString = Connection.TRConnection;
     Popup = new frmPopup(DevXMgr);
     daSupplier.Fill(dsSupplier11);
     daPO.Fill(dsPO11);
 }
コード例 #2
0
 public SupplierSubConValidator(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr)
 {
     this.Connection = Connection;
     this.DevXMgr    = DevXMgr;
     Popup           = new frmPopup(DevXMgr);
     RunSetups();
 }
コード例 #3
0
 public ucSupplierView(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr)
 {
     this.Connection = Connection;
     this.DevXMgr    = DevXMgr;
     Popup           = new frmPopup(DevXMgr);
     InitializeComponent();
     RunSetups();
 }
コード例 #4
0
 public ucMasterView(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr)
 {
     this.Connection = Connection;
     this.DevXMgr    = DevXMgr;
     CBOUtil         = new ComboSearch.Util(DevXMgr);
     Popup           = new frmPopup(DevXMgr);
     InitializeComponent();
     RunSetups();
 }
コード例 #5
0
 public frmManChk(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, string sSupplier, int iAP_INV_HEADER_ID)
 {
     this.Connection   = Connection;
     this.myMgr        = DevXMgr;
     this.Popup        = new frmPopup(myMgr);
     _Supplier         = sSupplier;
     _AP_INV_HEADER_ID = iAP_INV_HEADER_ID;
     InitializeComponent();
     TR_Conn = new SqlConnection(Connection.TRConnection);
 }
コード例 #6
0
 public frmAP(string WebDB, string Server, string CompanyID, string User)
 {
     TUC_HMDevXManager.TUC_HMDevXManager DevXMgr = new TUC_HMDevXManager.TUC_HMDevXManager();
     DevXMgr.AppInit(User);
     Connection = new HMCon(WebDB, Server, Convert.ToInt32(CompanyID), User);
     Popup      = new WS_Popups.frmPopup(DevXMgr);
     InitializeComponent();
     AP        = new ucAP.ucAP(WebDB, Server, CompanyID, User, DevXMgr);
     AP.Dock   = DockStyle.Fill;
     AP.Parent = this;
 }
コード例 #7
0
ファイル: ucWebInvDet.cs プロジェクト: haizhizhong/Reflex11
        public ucWebInvDet(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) : this()
        {
            this.Connection = Connection;
            this.DevXMgr    = DevXMgr;
            Popup           = new frmPopup(DevXMgr);

            LoadConnectionDefaults();

            ucHistoryView1.TypeID = CONST_SUB_PAYMENT_REQUEST;
            lciSave.Visibility    = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;

            DetNonEditable();
        }
コード例 #8
0
ファイル: frmGSTExcept.cs プロジェクト: haizhizhong/Reflex11
        public frmGSTExcept(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr)
        {
            this.Connection = Connection;
            this.myMgr      = DevXMgr;
            Popup           = new frmPopup(myMgr);
            InitializeComponent();
            TR_Conn = new SqlConnection(Connection.TRConnection);

            ucAPGSTE          = new ucAPGSTException(Connection, myMgr);
            ucAPGSTE.Parent   = xtraTabPage1;
            ucAPGSTE.Dock     = DockStyle.Fill;
            ucAPGSTE.Readonly = false;
        }
コード例 #9
0
        public frmQuickCheck(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AP_INV_HEADER_ID, int Year, int Period)
        {
            this.Connection   = Connection;
            this.myMgr        = DevXMgr;
            _AP_INV_HEADER_ID = AP_INV_HEADER_ID;
            _Year             = Year;
            _Period           = Period;
            InitializeComponent();

            TR_Conn.ConnectionString = Connection.TRConnection;

            Popup = new frmPopup(myMgr);

            object obj = Connection.SQLExecutor.ExecuteScalar("select currency_id from AP_INV_HEADER where AP_INV_HEADER_ID =" + AP_INV_HEADER_ID, Connection.TRConnection);

            if (obj == null || obj == DBNull.Value)
            {
                obj = -1;
            }

            daBank.SelectCommand.Parameters["@currency_id"].Value = obj;
            daBank.Fill(dsBank1);
            deChkDate.DateTime = DateTime.Now.Date;

            ucAccountingPicker1.UserName         = Connection.MLUser;
            ucAccountingPicker1.ConnectionString = Connection.TRConnection;

            chkIncludeHB.EditValue = "T";

            CheckHBRouting();

            string sSQL = @"if exists(select * from AP_INV_HEADER where isnull(INVOICE_TYPE,'I')='M' and AP_INV_HEADER_ID=" + _AP_INV_HEADER_ID + @")
	                        select 1
                        else
	                        select 0"    ;

            b_Manual = Convert.ToBoolean(Connection.SQLExecutor.ExecuteScalar(sSQL, Connection.TRConnection));
            if (b_Manual)
            {
                sSQL = @"select MANUAL_CHECK from AP_INV_HEADER where AP_INV_HEADER_ID=" + _AP_INV_HEADER_ID;
                txtCheckNo.Enabled   = false;
                txtCheckNo.EditValue = Connection.SQLExecutor.ExecuteScalar(sSQL, Connection.TRConnection);
                btnPrint.Text        = "Process";
            }
        }
コード例 #10
0
ファイル: frmQuickCheck.cs プロジェクト: haizhizhong/Reflex11
        public frmQuickCheck(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AP_INV_HEADER_ID, int Year, int Period)
        {
            this.Connection   = Connection;
            this.myMgr        = DevXMgr;
            _AP_INV_HEADER_ID = AP_INV_HEADER_ID;
            _Year             = Year;
            _Period           = Period;
            InitializeComponent();

            Popup = new frmPopup(myMgr);

            TR_Conn = new SqlConnection(Connection.TRConnection);

            ucAccountingPicker1.UserName         = Connection.MLUser;
            ucAccountingPicker1.ConnectionString = Connection.TRConnection;

            ucAccountingPicker1.setDefaults();
        }