예제 #1
0
        private void GetData_MT3A()
        {
            if (Tungay == null || Denngay == null)
            {
                return;
            }

            MT3A.ConditionMaster = " (ngayct between '" + Tungay + "' and '" + Denngay + "') and MaKH='" + MaKH + "'";
            MT3A.GetData();
        }
예제 #2
0
        private void sTim_Click(object sender, EventArgs e)
        {
            _data.ConditionMaster = "SoCT='" + txtCode.Text + "'";
            _data.Condition       = string.Empty;
            _data.GetData();
            bs.DataSource      = _data.DsData;
            this.bs.DataMember = _data.DsData.Tables[0].TableName;
            _data.DsData.Tables[0].ColumnChanged += FBanhang_ColumnChanged;
            gridControl1.DataSource = bs;
            gridControl1.DataMember = this._data.DrTable["TableName"].ToString();
            bs.MoveFirst();

            //gridControl1.RefreshDataSource();
        }
예제 #3
0
        private void grLoaiCT_EditValueChanged(object sender, EventArgs e)
        {
            string systableID = grLoaiCT.EditValue.ToString();

            //int packageID = int.Parse(Config.GetValue("sysPackageID").ToString());
            _data = new DataMasterDetail(systableID);
            _data.GetData();
            _designer = new FormDesigner(_data);
            //_data.GetInfor()
            gMain            = _designer.GenGridControl(_data.DsStruct.Tables[0], false, DockStyle.Fill);
            gMain.DataSource = _data.DsData.Tables[0];
            panelControl3.Controls.Clear();
            panelControl3.Controls.Add(gMain);
        }
예제 #4
0
        public fBanhang()
        {
            InitializeComponent();
            _data = new DataMasterDetail("DT3B", "7");

            _frmDesign = new FormDesigner(_data, bs);
            _data.GetData();
            dt = Getstruct();
            getdata();
            bs.DataSource      = _data.DsData;
            this.bs.DataMember = _data.DsData.Tables[0].TableName;
            _data.DsData.Tables[0].ColumnChanged += FBanhang_ColumnChanged;
            gridControl1.DataSource = bs;
            bs.CurrentChanged      += Bs_CurrentChanged;
            gridControl1.DataMember = this._data.DrTable["TableName"].ToString();

            gridLookUpEdit1.Properties.ImmediatePopup = true;
            gridView1.KeyUp += new KeyEventHandler(gridView1_KeyUp);
            this.KeyUp      += new KeyEventHandler(fBanhang_KeyUp);

            MaCN    = Config.GetValue("MaCN").ToString();
            sysDBID = Config.GetValue("sysDBID").ToString();
            NewCT();
        }