Exemplo n.º 1
0
 public AdvancePayment(_FromWherere formWhere, string id)
 {
     InitializeComponent();
     mformwhere = formWhere;
     GenerateSlNo();
     pnlGst.Hide();
     pnlorder.Hide();
     GridDesign();
     cmbPaymentMethod.SelectedIndex = 0;
     if (mformwhere == _FromWherere.Order)
     {
         mOrderid = id;
         pnlorder.Show();
         GetOrderDetails();
     }
     else
     {
         mLedgerId = id;
         string suppliername;
         Supplier._DicSuppliers.TryGetValue(mLedgerId, out suppliername);
         lblSupplierName.Text = suppliername;
         GetSupplierDetails(mLedgerId);
         GetOrgBillingAndShippingDetails();
         //GetCustomerAddressDetails(mLedgerId);
         //GetCustomerShippedDetails(mLedgerId);
         pnlGst.Show();
     }
 }
Exemplo n.º 2
0
 public AdvanceReceipt(_FromWherere formWhere, string id)
 {
     InitializeComponent();
     this.FitToVertical();
     mformwhere = formWhere;
     GenerateSlNo();
     pnlGst.Hide();
     grbOrder.Hide();
     GridDesign();
     cmbPaymentMethod.SelectedIndex = 0;
     if (mformwhere == _FromWherere.Order)
     {
         mOrderid = id;
         grbOrder.Show();
         GetOrderDetails();
     }
     else
     {
         mLedgerId = id;
         string customername;
         Customertools._DicCustomers.TryGetValue(mLedgerId, out customername);
         lblCustomername.Text = customername;
         GetCustomerAddressDetails(mLedgerId);
         GetCustomerShippedDetails(mLedgerId);
         pnlGst.Show();
     }
 }