Exemplo n.º 1
0
 void InitSuppliers()
 {
     sc = new wrPurchases.Server2Client();
     wrSuppliers.Server2Client s2c = new wrSuppliers.Server2Client();
     sup = new wrSuppliers.wsSuppliers();
     s2c = sup.getSuppliers();
     lueSUP.Properties.DataSource    = s2c.dataTable;
     lueSUP.Properties.DisplayMember = "SupplierName";
     lueSUP.Properties.ValueMember   = "ID";
 }
Exemplo n.º 2
0
        private void fillGrid()
        {
            sup = new wrSuppliers.wsSuppliers();
            sc  = new wrSuppliers.Server2Client();

            sc = sup.getSuppliers();

            grd.DataSource = sc.dataTable;

            ButtonDisableEnable(sc.Count);
        }
Exemplo n.º 3
0
        public frmSelectSupplier()
        {
            InitializeComponent();

            wrSuppliers.Server2Client sc = new wrSuppliers.Server2Client();

            wrSuppliers.wsSuppliers sup = new wrSuppliers.wsSuppliers();
            sc = sup.getSuppliers();
            lueSNM.Properties.DataSource    = sc.dataTable;
            lueSNM.Properties.DisplayMember = "SupplierName";
            lueSNM.Properties.ValueMember   = "ID";

            chkSEL_CheckedChanged(null, null);
        }
Exemplo n.º 4
0
        public frmDebitPayment(int SupplierID)
        {
            InitializeComponent();
            txtPDT.DateTime = DateTime.Now.Date;
            sc  = new wrSuppliers.Server2Client();
            sup = new wrSuppliers.wsSuppliers();
            sc  = sup.getSuppliers();

            lueSNM.Properties.DataSource    = sc.dataTable;
            lueSNM.Properties.DisplayMember = "SupplierName";
            lueSNM.Properties.ValueMember   = "ID";

            lueSNM.EditValue = SupplierID;
            sc = sup.getSupplierBalanceByID(SupplierID);

            txtCBAL.Text = sc.Value.ToString();

            txtAMNT.Text = "0";
            txtNBAL.Text = "0";
        }
Exemplo n.º 5
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";
        }