private ReceiptClass FillOtherReceiptObject(UInt64 ReceiptID) { ReceiptClass rc = new ReceiptClass(); rc.ApproveFlag = "A"; rc.UserID = UserInfo.UserId; rc.PostNodeCode = UserInfo.PostNodeCode; rc.ParentID = ReceiptID; rc.ReceiptSerialNo = _host.txtReceiptNo.Text; rc.ReceiptNumberSeri = _host.txtSeri.Text; rc.ReceiptAlphabetSeri = _host.ddlSeri.SelectedValue; rc.Price = Convert.ToUInt64(_host.txtPrice.Text); rc.PayerName = _host.txtPayerName.Text; rc.IsPhish = _host.ddlTypePrice.SelectedValue; if (rc.IsPhish == "0") { rc.ChequeVajh = _host.txtVajehCheque.Text.Trim(); rc.ChequeAccountNo = _host.txtAccountNoCheque.Text.Trim(); rc.ChequeComment = _host.txtComment.Text.Trim(); rc.ChequeSaderKonandeh = _host.txtSaderKonandehCheque.Text.Trim(); } rc.PayDate = _host.PayDate; rc.IsSupplementReceipt = "Y"; rc.InsertTime = DateAndTime.GetTime8Digit(); rc.Description = ""; rc.Deleted = "N"; rc.BankID = Convert.ToInt32(_host.ddl_bank.SelectedValue); rc.ApproveDate = DateAndTime.GetDate10Digit(); rc.RefID = BI.ReturnRefIDByID(ReceiptID); rc.ReceiptTypeValue = Convert.ToUInt64(BI.ReturnReceiptTypeValueByID(ReceiptID.ToString())); return(rc); }
public void SaveOtherReceiptInfo(int RefID) { ReceiptClass rc = new ReceiptClass(); rc.ReceiptSerialNo = _host.txtReceiptSerialNo.Text; rc.ReceiptAlphabetSeri = _host.ddlSeri.SelectedValue; rc.ReceiptNumberSeri = _host.txtSeri.Text.Trim(); rc.BankID = Convert.ToInt32(_host.ddl_bank.SelectedValue); rc.Price = Convert.ToUInt64(_host.txtPrice.Text); rc.PayDate = _host.ReceiptDate; rc.InsertTime = DateAndTime.GetTime8Digit(); rc.PayerName = _host.txtPayerName.Text; rc.UserID = UserInfo.UserId; rc.ReceiptTypeValue = Convert.ToUInt64(_host.ddlReceiptType.SelectedValue); rc.RefID = RefID; rc.PostNodeCode = UserInfo.PostNodeCode; rc.IsPhish = _host.ddlTypePrice.SelectedValue; if (_host.ddlTypePrice.SelectedValue == "0") { rc.ChequeAccountNo = _host.txtAccountNoCheque.Text.Trim(); rc.ChequeComment = _host.txtComment.Text.Trim(); rc.ChequeSaderKonandeh = _host.txtSaderKonandehCheque.Text.Trim(); rc.ChequeVajh = _host.txtVajehCheque.Text.Trim(); } BI.SaveOtherReceipt(rc); }
private ReceiptClass FillReceiptObject() { ReceiptClass _Receipt = new ReceiptClass(); _Receipt.IsPhish = _host.ddlTypePrice.SelectedValue; _Receipt.BankID = Convert.ToInt32(_host.ddl_bank.SelectedValue); _Receipt.InsertDate_SH = DateAndTime.GetDate10Digit(); _Receipt.InsertTime = DateAndTime.GetTime8Digit(); _Receipt.PayerName = _host.txtPayerName.Text.Trim(); _Receipt.Price = Convert.ToUInt64(_host.txtPrice.Text.Trim()); _Receipt.ReceiptSerialNo = _host.txtReceiptSerialNo.Text.Trim(); _Receipt.ReceiptNumberSeri = _host.txtSeri.Text.Trim(); _Receipt.ReceiptAlphabetSeri = _host.ddlSeri.SelectedValue.ToString(); _Receipt.PayDate = _host.ReceiptDate; _Receipt.UserID = UserInfo.UserId; _Receipt.PostNodeCode = UserInfo.PostNodeCode; if (_host.ddlTypePrice.SelectedValue == "0") { _Receipt.ChequeAccountNo = _host.txtAccountNoCheque.Text.Trim(); _Receipt.ChequeComment = _host.txtComment.Text.Trim(); _Receipt.ChequeSaderKonandeh = _host.txtSaderKonandehCheque.Text.Trim(); _Receipt.ChequeVajh = _host.txtVajehCheque.Text.Trim(); } return(_Receipt); }
public void UpdateSupplementReceipt(int ID) { RC = FillSupplementReceipt(ID); BI.UpdateSupplementReceipt(RC, DateAndTime.GetDate10Digit_latin(), DateAndTime.GetTime8Digit(), DateAndTime.GetDate10Digit()); }
public string UpdateInfo(string SelectedID, string DontSelectedID, string RceiptID) { string Result = ""; try { ReceiptClass _Receipt = FillReceiptObject(); if (DontDisparityPriceWithArsenal(SelectedID, RceiptID) > -1) { if (BI.IsExistEqualOtherReceipt(_Receipt.ReceiptSerialNo, _Receipt.ReceiptNumberSeri, _Receipt.ReceiptAlphabetSeri, RceiptID)) { Result = "این فیش قبلا ثبت شده لطفا اطلاعات فیش را بررسی نمایید ."; return(Result); } BI.UpdateReceipt(_Receipt, RceiptID, DateAndTime.GetDate10Digit_latin(), DateAndTime.GetTime8Digit(), DateAndTime.GetDate10Digit()); BI.UpdateReceiptidInParcelList(SelectedID, DontSelectedID, RceiptID, DateAndTime.GetSQLDateTimeDigitMiladi(), DateAndTime.GetSQLDate10DigitShamsi()); Result = ""; } else { Result = "مبلغ فیش از مبالغ مرسولات کمتر است ."; } } catch { Result = "مشکل در بروز رسانی اطلاعات."; } return(Result); }