Exemple #1
0
 void InitCustomers()
 {
     wrCustomers.Server2Client scc = new wrCustomers.Server2Client();
     wrCustomers.wsCustomers   cus = new wrCustomers.wsCustomers();
     scc = cus.getCustomers();
     lueCNM.Properties.DataSource    = scc.dataTable;
     lueCNM.Properties.DisplayMember = "CustomerName";
     lueCNM.Properties.ValueMember   = "ID";
 }
Exemple #2
0
        void fillGrid()
        {
            sc   = new wrCustomers.Server2Client();
            cust = new wrCustomers.wsCustomers();

            sc = cust.getCustomers();

            grd.DataSource = sc.dataTable;

            ButtonDisableEnable(sc.Count);
        }
Exemple #3
0
 public frmSelectCustomer(int ID)
 {
     InitializeComponent();
     sc  = new wrCustomers.Server2Client();
     cus = new wrCustomers.wsCustomers();
     sc  = cus.getCustomers();
     lueCNM.Properties.DataSource    = sc.dataTable;
     lueCNM.Properties.DisplayMember = "CustomerName";
     lueCNM.Properties.ValueMember   = "ID";
     checkEdit1_CheckedChanged(null, null);
     chkSelect.Enabled = false;
 }
Exemple #4
0
        public frmSelectCustomer()
        {
            InitializeComponent();

            sc  = new wrCustomers.Server2Client();
            cus = new wrCustomers.wsCustomers();
            sc  = cus.getCustomers();
            lueCNM.Properties.DataSource    = sc.dataTable;
            lueCNM.Properties.DisplayMember = "CustomerName";
            lueCNM.Properties.ValueMember   = "ID";

            checkEdit1_CheckedChanged(null, null);
            dtFr.DateTime = DateTime.Now.Date;
            dtTo.DateTime = DateTime.Now.Date;
        }
Exemple #5
0
        public frmCreditPayment()
        {
            InitializeComponent();

            txtPDT.DateTime = DateTime.Now.Date;
            sc  = new wrCustomers.Server2Client();
            cus = new wrCustomers.wsCustomers();
            sc  = cus.getCustomers();

            lueCNM.Properties.DataSource    = sc.dataTable;
            lueCNM.Properties.DisplayMember = "CustomerName";
            lueCNM.Properties.ValueMember   = "ID";

            txtCBAL.Text = "0";
            txtAMNT.Text = "0";
            txtNBAL.Text = "0";
        }
Exemple #6
0
        public ucReports()
        {
            InitializeComponent();

            //if (dv.Document == null)
            //    rpPreview.Visible = false;
            chkALL.Checked     = true;
            checkEdit1.Checked = true;
            wrCustomers.Server2Client csc = new wrCustomers.Server2Client();
            wrCustomers.wsCustomers   cus = new wrCustomers.wsCustomers();
            csc = cus.getCustomers();
            lueCUS.Properties.DataSource    = csc.dataTable;
            lueCUS.Properties.DisplayMember = "CustomerName";
            lueCUS.Properties.ValueMember   = "ID";

            wrSuppliers.Server2Client ssc = new wrSuppliers.Server2Client();
            wrSuppliers.wsSuppliers   sup = new wrSuppliers.wsSuppliers();
            ssc = sup.getSuppliers();
            lueSUP.Properties.DataSource    = ssc.dataTable;
            lueSUP.Properties.DisplayMember = "SupplierName";
            lueSUP.Properties.ValueMember   = "ID";
        }