Beispiel #1
0
        public void GetNonSaleInv()
        {
            var tasalMain = new DsInventoryTableAdapters.SALESMAINTableAdapter
                                {Connection = {ConnectionString = _constr}};

            var tasaldetail = new DsInventoryTableAdapters.SALESINVDETAILTableAdapter
                                  {Connection = {ConnectionString = _constr}};

            var ds = new DsInventory();
            tasalMain.FillByNonPost(ds.SALESMAIN, Environment.MachineName);
            if (ds.SALESMAIN.Rows.Count > 0)
            {
                salesmainRow = ds.SALESMAIN[0];
                var sinvno = salesmainRow[0].ToString();
                try
                {
                    tasaldetail.FillBySINVNO(ds.SALESINVDETAIL, sinvno);
                    salesinvdetailData = ds.SALESINVDETAIL;
                }
                catch (Exception ex)
                {
                    System.Windows.Forms.MessageBox.Show(ex.ToString());
                }

            }
        }
Beispiel #2
0
 public void GetNonSaleInv()
 {
     var bl = new SalesManger();
     bl.GetNonSaleInv();
     SalesmainRow = bl.salesmainRow;
     Salesinvdetail = bl.salesinvdetailData;
 }