예제 #1
0
 void InitCategories()
 {
     wrProducts.Server2Client spc = new wrProducts.Server2Client();
     wrProducts.wsProducts    prd = new wrProducts.wsProducts();
     spc = prd.GetCategories();
     lueCAT.Properties.DataSource    = spc.dataTable;
     lueCAT.Properties.DisplayMember = "CategoryName";
     lueCAT.Properties.ValueMember   = "ID";
 }
예제 #2
0
        public frmDeleteProduct()
        {
            InitializeComponent();

            sc  = new wrProducts.Server2Client();
            prd = new wrProducts.wsProducts();

            sc = prd.GetCategories();
            lueCAT.Properties.DataSource    = sc.dataTable;
            lueCAT.Properties.DisplayMember = "CategoryName";
            lueCAT.Properties.ValueMember   = "ID";
        }
예제 #3
0
 void InitCategories()
 {
     wrProducts.Server2Client s2c = new wrProducts.Server2Client();
     wrProducts.wsProducts    cat = new wrProducts.wsProducts();
     s2c = cat.GetCategories();
     lueCAT1.Properties.DataSource    = s2c.dataTable;
     lueCAT1.Properties.DisplayMember = "CategoryName";
     lueCAT1.Properties.ValueMember   = "ID";
     lueCAT2.Properties.DataSource    = s2c.dataTable;
     lueCAT2.Properties.DisplayMember = "CategoryName";
     lueCAT2.Properties.ValueMember   = "ID";
 }
예제 #4
0
        public frmRowEdit(int RowHandle, int CatID, string PNM, double BVL, double SVL, int QTY, string BCD)
        {
            InitializeComponent();

            wrProducts.Server2Client sc  = new wrProducts.Server2Client();
            wrProducts.wsProducts    cat = new wrProducts.wsProducts();
            sc = cat.GetCategories();
            lueCAT.Properties.DataSource    = sc.dataTable;
            lueCAT.Properties.DisplayMember = "CategoryName";
            lueCAT.Properties.ValueMember   = "ID";

            lueCAT.EditValue = CatID;
            txtPNM.EditValue = PNM;
            txtBVL.EditValue = BVL;
            txtSVL.EditValue = SVL;
            txtQTY.EditValue = QTY;
            txtBCD.EditValue = BCD;
        }