Beispiel #1
0
 public EmpoeeTable()
 {
     InitializeComponent();
     //  XpoDefault.ConnectionString = OracleConnectionProvider.GetConnectionString("XINHUA", "xxb", "pass");
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
 }
 public FrmGoodsInformation()
 {
     InitializeComponent();
     XpoDefault.ConnectionString = FrmLogin.xpoDataCentStr;
     selection = new GridCheckMarksSelection(gridView1);
     selection.CheckMarkColumn.VisibleIndex = 0;
        xpServerCollectionSource1.FixedFilterString = "[SPXXID] Is Null";
 }
 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() + "\'";
 }
        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
        }
Beispiel #5
0
        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();
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 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;
 }
 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);
 }
Beispiel #9
0
        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";
        }
        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;
        }
        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);
        }
        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();
        }
        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;
        }
        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();
        }
        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();
        }
        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);
        }
        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;
        }
Beispiel #18
0
        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";
        }