private Voucher CollectData() { Voucher fobj = new Voucher() { Voucher_id = vId, Company_id = Current.Company_id, Voucher_no = txt_voucher_no.Text, Voucher_date = txt_voucher_date.Text, Vouchertype_id = CVouchertype_exten.GetId_Name(txt_vouchertype_id.Text), Order_id = COrder_exten.GetId_Name(txt_order_id.Text), Ledger_id = CLedger_exten.GetId_Name(txt_ledger_id.Text), Party_id = CParty_exten.GetId_Name(txt_party_id.Text), Purpose = txt_purpose.Text, Credit = "", Debit = "", Active_id = Core.Stative, Notes = txt_notes.Text, User_id = Current.User }; var method = CVouchertype_exten.GetMethodid_Name(txt_vouchertype_id.Text); if (method == "1")// 1 payment { fobj.Credit = txt_credit.Text; } else if (method == "2") // receipt { fobj.Debit = txt_debit.Text; } return(fobj); }
private Creditnote CollectData() { Creditnote fobj = new Creditnote() { Creditnote_id = vId, Uniqueno = Current.Acy_id + "~" + Current.Company_id + "~" + txt_invoice_no.Text, Company_id = Current.Company_id, //Div_id = Current.Div_id, Acy_id = Current.Acy_id, Order_id = COrder_exten.GetId_Name(txt_order_id.Text, "", "", ""), Creditnote_no = txt_invoice_no.Text, Creditnote_date = txt_invoice_date.Text, Party_id = CParty_exten.GetId_Name(txt_party_id.Text), Taxtype_id = CTaxtype_exten.GetId_Name(txt_taxtype_id.Text), Salestype_id = CSalestype_exten.GetId_Name(txt_salestype_id.Text), Total_qty = txt_total_qty.Text, Total_taxable_amount = ConvertTO.Decimal(vTotTaxable.ToString()), Total_cgst = ConvertTO.Decimal(vTotCgst.ToString()), Total_sgst = ConvertTO.Decimal(vTotSgst.ToString()), Total_igst = ConvertTO.Decimal(vTotIgst.ToString()), Gsttotal = ConvertTO.Decimal(txt_gsttotal.Text), Ledger_id = CLedger_exten.GetId_Name(txt_ledger_id.Text), Additional = ConvertTO.Decimal(txt_additional.Text), Rounds = ConvertTO.Decimal(vRoundoff.ToString()), Grandtotal = ConvertTO.Decimal(txt_grandtotal.Text), Refered_amt = ConvertTO.Decimal(txt_grandtotal.Text), Locked = Core.Unlocked, Active_id = Core.Stative, Notes = txt_notes.Text, User_id = Current.User }; return(fobj); }
public void List_Option(ListOption pAction) { fAction = pAction; switch (fAction) { case ListOption.active: if (chk_notactive.Checked == true) { LoadData(CVoucher_exten.NotActive(new DAL())); } else { LoadData(CVoucher_exten.Active(new DAL())); } break; case ListOption.notactive: if (chk_notactive.Checked == true) { LoadData(CVoucher_exten.NotActive(new DAL())); } else { LoadData(CVoucher_exten.Active(new DAL())); } break; case ListOption.Search: List <Voucher> list = CVoucher_exten.Searchfilter( txt_voucher_no.Text , txt_voucher_no_1.Text , txt_voucher_date.Text , txt_voucher_date_1.Text , CVouchertype_exten.GetId_Name(txt_vouchertype.Text) , COrder_exten.GetId_Name(txt_orderref.Text) , CLedger_exten.GetId_Name(txt_ledger.Text) , CParty_exten.GetId_Name(txt_party.Text) , txt_purpose.Text , new DAL()); LoadData(list); break; default: LoadData(CVoucher_exten.Active(new DAL())); break; } }
private Cash_payment CollectData() { Cash_payment fobj = new Cash_payment() { Cash_payment_id = vId, Order_id = COrder_exten.GetId_Name(txt_order_id.Text, "", "", ""), Payment_date = txt_payment_date.Text, Ledger_id = CLedger_exten.GetId_Name(txt_ledger_id.Text), Purpose = txt_purpose.Text, Party_id = CParty_exten.GetId_Name(txt_party_id.Text), Payment_amount = ConvertTO.Decimal(txt_payment_amount.Text), Active_id = Core.Stative, Notes = txt_notes.Text, User_id = Current.User }; return(fobj); }
void Txt_order_LookupUpdate(object sender, EventArgs e) { txt_order_id.LookupList = COrder_exten.LookupNo(); }
void txt_order_LookupUpdate(object sender, EventArgs e) { txt_order_id.LookupList = COrder_exten.GetforLookup(new DAL()); }