Example #1
0
 private void PurchaseInvoice_Load(object sender, EventArgs e)
 {
     //this.Text = "Item Receipt";
     this.wAREHOUSEMASTTableAdapter.Fill(this.dataSet1.WAREHOUSEMAST);
     this.pURINVDETAILTableAdapter1.Fill(this.dataSet1.PURINVDETAIL);
     this.sTOREMASTTableAdapter.Fill(this.dataSet1.STOREMAST);
     this.iTEMGROUPTableAdapter.Fill(this.dataSet1.ITEMGROUP);
     this.iTEMMAST1TableAdapter.Fill(this.dataSet1.ITEMMAST1);
  //   this.sUPPLIERTableAdapter.Fill(this.dataSet1.SUPPLIER);
     comboBox1.SelectedIndex = 0;
     //var ds = new DataSet1();
     //var t = new DataSet1TableAdapters.PURINVMAINTableAdapter();
    // var dt = t.FillByHold(ds.PURINVMAIN);
     this.purinvmainTableAdapter1.FillByHold(this.dataSet1.PURINVMAIN);             
    
     if (this.dataSet1.PURINVMAIN.Rows.Count > 0)
     {
         var f = new HoldPurchase();
         f.ShowDialog();
         if (Utils.purid > 0)
         {
             purid = Utils.purid;
             DoViewData();
         }
     }
     invdate.EditValue = DateTime.Now;
 }
Example #2
0
 private void PurchaseInvoiceLoad(object sender, EventArgs e)
 {
     //this.Text = "Item Receipt";
     wAREHOUSEMASTTableAdapter.Fill(dataSet1.WAREHOUSEMAST);
     pURINVDETAILTableAdapter1.Fill(dataSet1.PURINVDETAIL);
     sTOREMASTTableAdapter.Fill(dataSet1.STOREMAST);
     iTEMGROUPTableAdapter.Fill(dataSet1.ITEMGROUP);
     iTEMMAST1TableAdapter.Fill(dataSet1.ITEMMAST1);
     sUPPLIERTableAdapter.Fill(dataSet1.SUPPLIER);
    // comboBox1.SelectedIndex = 0;
   //var ds = new DataSet1();
   //var t = new DataSet1TableAdapters.PURINVMAINTableAdapter();
  // var dt = t.FillByHold(ds.PURINVMAIN);
     purinvmainTableAdapter1.FillByHold(dataSet1.PURINVMAIN);             
     if (dataSet1.PURINVMAIN.Rows.Count > 0)
     {
         var f = new HoldPurchase();
         f.ShowDialog();
         if (!string.IsNullOrEmpty(_purid))
         {
            // _purid = BusinessLogic.BLPURINV.Purinvid;
             DoViewData();
         }
     }
     invdate.EditValue = DateTime.Now;
 }
Example #3
0
 protected void GetHoldList()
 {
     var cnt = !_doctype ? ClsGetData.GetPurchaseHoldCount() : ClsGetData.GetPurchaseReturnHoldCount();
     if (cnt > 0)
     {
         var f = new HoldPurchase(_doctype);
         f.ShowDialog();
         DocNo = f.Purid;
         HoldView();
     }
 }