Ejemplo n.º 1
0
        void ActionStep1()
        {
            DataTable custTb = M_CustomerDTO.DataTable();
            DataRow   custDr = custTb.NewRow();

            custDr["CustomerOID"]             = oid;
            custDr["CustomerID"]              = txtCustomerID.Text;
            custDr["CustomerNo"]              = txtCustomerNO.Text;
            custDr["RegBusinessName"]         = txtRegBusinessName.Text;
            custDr["RegBusinessNameTH"]       = txtRegBusinessNameTH.Text;
            custDr["CustomerName"]            = txtCustomerName.Text;
            custDr["JuristicIDNo"]            = txtJuristicIDNo.Text;
            custDr["RegisterDate"]            = txtRegisterDate.Text;
            custDr["PrimaryBusinessTypeCode"] = txtPrimaryBusinessType.Text;
            custDr["UPDATE_BY"] = MyLogin.USER_LOGIN;
            custTb.Rows.Add(custDr);

            string message = ActionConfirm.Update.Value;

            if (MessageBox.Show(message, ".:Customer Master", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                ActionStep2(custTb, (DataTable)gdAccount.DataSource, (DataTable)gdAddress.DataSource);
                LoadData();
            }
            else
            {
                splashScreenManager1.CloseWaitForm();
            }
        }
Ejemplo n.º 2
0
        void LoadData()
        {
            // splashScreenManager1.ShowWaitForm();
            System.Threading.Thread.Sleep(1000);
            bal = new M_CustomerBAL();

            objSearh        = new M_CustomerDTO();
            customerObjList = bal.FindByObjList(objSearh);
            this.gridView1.GridControl.DataSource = customerObjList;
            foreach (DevExpress.XtraGrid.Columns.GridColumn item in gridView1.Columns)
            {
                item.MaxWidth = 0;
            }
            gridView1.HorzScrollVisibility               = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;
            gridView1.OptionsView.BestFitMode            = DevExpress.XtraGrid.Views.Grid.GridBestFitMode.Full;
            gridView1.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
            gridView1.OptionsView.ColumnAutoWidth        = false;
            gridView1.BestFitColumns();
            System.Threading.Thread.Sleep(1000);
            //splashScreenManager1.CloseWaitForm();
        }
Ejemplo n.º 3
0
        void LoadData()
        {
            // splashScreenManager1.ShowWaitForm();
            System.Threading.Thread.Sleep(1000);
            bal = new M_CustomerBAL();

            objSearh        = new M_CustomerDTO();
            customerObjList = bal.FindByObjList(objSearh);
            this.gridView1.GridControl.DataSource = customerObjList;

            gridView1.MasterRowGetRelationName += (s, e) => {
                switch (e.RelationIndex)
                {
                case 0:
                    e.RelationName = "Order Detail";
                    break;

                case 1:
                    e.RelationName = "Customer Details";
                    break;

                case 2:
                    e.RelationName = "Employee Details";
                    break;
                }
            };


            foreach (DevExpress.XtraGrid.Columns.GridColumn item in gridView1.Columns)
            {
                item.MaxWidth = 0;
            }
            gridView1.HorzScrollVisibility               = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;
            gridView1.OptionsView.BestFitMode            = DevExpress.XtraGrid.Views.Grid.GridBestFitMode.Full;
            gridView1.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
            gridView1.OptionsView.ColumnAutoWidth        = false;
            gridView1.BestFitColumns();
            System.Threading.Thread.Sleep(1000);
            //splashScreenManager1.CloseWaitForm();
        }