コード例 #1
0
ファイル: EmpoeeTable.cs プロジェクト: radtek/wxcm-project
 public EmpoeeTable()
 {
     InitializeComponent();
     //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
 }
コード例 #2
0
 public FrmGoodsInformation()
 {
     InitializeComponent();
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
        xpServerCollectionSource1.FixedFilterString = "[SPXXID] Is Null";
 }
コード例 #3
0
 public FrmClientTuoShouJTAdd(string strXSTSDID)
 {
     InitializeComponent();
     //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
     this.txtTSDH.Tag = strXSTSDID;
     xpServerCollectionSource1.FixedFilterString = "[XSTSDID] = \'" + this.txtTSDH.Tag.ToString() + "\'";
 }
コード例 #4
0
        public FrmClientTuoShouJCSelectCase(string id, string khid)
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            xpServerCollectionSource1.FixedFilterString = "[ZTID] = \'" + FrmLogin.getZTID.ToString() + "\' AND [ZT] > \'" + "14" + "\' AND [JSFSID]=\'" + "1" + "\'AND [GHDWID]=\'" + khid + "\'";
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;
            gridView1.BestFitColumns();

            this.btnConfirm.Tag = id.ToString();//将销售结算单的ID值赋予确定按钮的TAG
        }
コード例 #5
0
ファイル: FrmPrintTypeMt.cs プロジェクト: radtek/wxcm-project
        public FrmPrintTypeMt(bool fgAdd, bool fgDel, bool fgUpdate, bool fgQuery, string strYSCLXID = null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();

            if (fgAdd)
            {
                btnAdd.Visibility = DevExpress.XtraBars.BarItemVisibility.Always;
            }
            else
            {
                btnAdd.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            }
            if (fgDel)
            {
                btnDel.Visibility = DevExpress.XtraBars.BarItemVisibility.Always;
            }
            else
            {
                btnDel.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            }
            if (fgUpdate)
            {
                btnUpdate.Visibility = DevExpress.XtraBars.BarItemVisibility.Always;
            }
            else
            {
                btnUpdate.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            }
            if (fgQuery)
            {
                btnQuery.Visibility = DevExpress.XtraBars.BarItemVisibility.Always;
            }
            else
            {
                btnQuery.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            }

            if (String.IsNullOrEmpty(strYSCLXID))
            {
                xpServerCollectionSource1.FixedFilterString = "[YSCLXID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strYSCLXID;
            }

            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
        }
コード例 #6
0
ファイル: UserEdit.cs プロジェクト: radtek/wxcm-project
        public UserEdit(string id)
        {
            InitializeComponent();
            txtName.Tag = id;
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            this.gridView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridView1_MouseUp);
            this.treeView1.AfterCheck += new TreeViewEventHandler(treeView1_AfterCheck);
        }
コード例 #7
0
ファイル: UserMain.cs プロジェクト: radtek/wxcm-project
 public UserMain(bool fgAdd, bool fgDel, bool fgUpdate, bool fgQuery)
 {
     InitializeComponent();
     //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
     m_fgAdd = fgAdd;
     m_fgDel = fgDel;
     m_fgQuery = fgQuery;
     m_fgUpdate = fgUpdate;
 }
コード例 #8
0
 public FrmUnusualStockInput()
 {
     InitializeComponent();
     //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
     xpServerCollectionSource1.FixedFilterString = "[YCKCID] Is Null";
     this.gridView1.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(this.gridView1_CustomDrawRowIndicator);
     this.gridView1.CustomDrawFooterCell += new DevExpress.XtraGrid.Views.Grid.FooterCellCustomDrawEventHandler(this.gridView1_CustomDrawFooterCell);
     this.gridView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridView1_MouseUp);
 }
コード例 #9
0
ファイル: FrmSaleStageJT.cs プロジェクト: radtek/wxcm-project
        public FrmSaleStageJT()
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            selection1 = new GridCheckMarksSelection(gridView1);
            selection1.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource1.FixedFilterString = "[XSJSDID] Is Null";

            selection2 = new GridCheckMarksSelection(gridView2);
            selection2.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource2.FixedFilterString = "[XSJSDMXID] Is Null";
        }
コード例 #10
0
        public FrmPurchaseStageSelectCase(string id,string sl, string ghdwid,string ztid)
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            xpServerCollectionSource1.FixedFilterString = "[ZTID] = \'" + ztid + "\' AND [GYSID] = \'" + ghdwid + "\' AND [SL]=\'" + sl + "\'";
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;
            gridView1.BestFitColumns();

            chjsdid = id;
            cghdwid = ghdwid;
            csl = sl;
            cztid = ztid;
        }
コード例 #11
0
        public FrmUnusualStockReturnsAdd(string jtdid)
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource1.FixedFilterString = "[JTDID] = \'" + jtdid + "\'";
            this.txtJTDH.Tag = jtdid;

            this.txtSH.Validating += new System.ComponentModel.CancelEventHandler(this.txtSH_Validating);
            //  this.txtCS.GotFocus+=new EventHandler(txtCS_GotFocus);
            this.gridView1.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(this.gridView1_CustomDrawRowIndicator);
            this.gridView1.CustomDrawFooterCell += new DevExpress.XtraGrid.Views.Grid.FooterCellCustomDrawEventHandler(this.gridView1_CustomDrawFooterCell);
            this.gridView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridView1_MouseUp);
        }
コード例 #12
0
        public FrmPurchaseCollectionDetail(string strCGTSDID=null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();
            if (String.IsNullOrEmpty(strCGTSDID))
            {
                xpServerCollectionSource1.FixedFilterString = "[CGTSDMXID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strCGTSDID;
            }
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
        }
コード例 #13
0
        public FrmSaleTotalBranch(bool fgBranch, string strXSHZDID = null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();
            if (String.IsNullOrEmpty(strXSHZDID))
            {
                xpServerCollectionSource1.FixedFilterString = "[XSHZDID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strXSHZDID;
            }
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
            m_fgBranch = fgBranch;
        }
コード例 #14
0
        public FrmCarryoverCostVoucherNote(string strVOUCHERID = null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();

            if (String.IsNullOrEmpty(strVOUCHERID))
            {
                xpServerCollectionSource1.FixedFilterString = "[VOUCHERID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strVOUCHERID;
            }
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
        }
コード例 #15
0
        public FrmSupplierAccountBranch(string strZTBMGYSSPTZID = null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();

            if (String.IsNullOrEmpty(strZTBMGYSSPTZID))
            {
                xpServerCollectionSource1.FixedFilterString = "[ZTBMGYSSPTZID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strZTBMGYSSPTZID;
            }

            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
        }
コード例 #16
0
        public FrmPurchaseStageJC()
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            selection1 = new GridCheckMarksSelection(gridView1);
            selection1.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource1.FixedFilterString = "[CGJSDID] Is Null";

            selection2 = new GridCheckMarksSelection(gridView2);
            selection2.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource2.FixedFilterString = "[CGJSDMXID] Is Null";
            this.gridView1.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(this.gridView1_CustomDrawRowIndicator);
            this.gridView1.CustomDrawFooterCell += new DevExpress.XtraGrid.Views.Grid.FooterCellCustomDrawEventHandler(this.gridView1_CustomDrawFooterCell);
            this.gridView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridView1_MouseUp);
            this.gridView1.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick);
            this.gridView2.CustomDrawRowIndicator += new DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventHandler(this.gridView2_CustomDrawRowIndicator);
            this.gridView2.CustomDrawFooterCell += new DevExpress.XtraGrid.Views.Grid.FooterCellCustomDrawEventHandler(this.gridView2_CustomDrawFooterCell);
            this.gridView2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.gridView2_MouseUp);
        }
コード例 #17
0
        public FrmPurchaseReceiveDetail(bool fgBranch,string strCGSHID=null)
        {
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;

            InitializeComponent();

            //xpInstantFeedbackSource1.FixedFilterString = strCGSHID;
            //gridControl1.DataSource = xpInstantFeedbackSource1;
            if (String.IsNullOrEmpty(strCGSHID))
            {
                xpServerCollectionSource1.FixedFilterString = "[CGSHMXID] Is Null";
            }
            else
            {
                xpServerCollectionSource1.FixedFilterString = strCGSHID;
            }
            selection = new GridCheckMarksSelection(gridView1);
            selection.CheckMarkColumn.VisibleIndex = 0;

            gridView1.BestFitColumns();
            m_fgBranch = fgBranch;
        }
コード例 #18
0
ファイル: FrmZTTZinquire.cs プロジェクト: radtek/wxcm-project
        private bool SPorKF = true; //控制按商品显示还是按照库房显示

        #endregion Fields

        #region Constructors

        public FrmZTTZinquire()
        {
            InitializeComponent();
            //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
            XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
            selection1 = new GridCheckMarksSelection(gridView1);
            selection1.CheckMarkColumn.VisibleIndex = 0;

            selection2 = new GridCheckMarksSelection(gridView2);
            selection2.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource2.FixedFilterString = "[ZTBMTZID] is null";

            selection3 = new GridCheckMarksSelection(gridView3);
            selection3.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource3.FixedFilterString = "[ZTBMSPTZID] is null";

            selection4 = new GridCheckMarksSelection(gridView4);
            selection4.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource4.FixedFilterString = "[ZTBMSPKFTZID] is null";

            selection5 = new GridCheckMarksSelection(gridView5);
            selection5.CheckMarkColumn.VisibleIndex = 0;
            xpServerCollectionSource5.FixedFilterString = "[ZTBMSPKFMXID] is null";
        }