public static List <RFund> GetRFund(NameValueCollection querystring) { int branchid = int.TryParse(querystring.Get("BranchID"), out branchid) ? branchid : 0; string criteria = querystring.Get("Criteria"); return(RFundDAL.GetRFund(branchid, criteria)); }
public static string Manage(NameValueCollection querystring, NameValueCollection formdata) { int intParser; decimal decimalParser; UserProfile userProfile = WebCommon.GetUserProfile(); var rfunddetails = new List <RFundDetail>(); rfunddetails = (List <RFundDetail>)rfunddetails.ToClass(formdata["Data"]); var rFund = new RFund { RFundID = int.TryParse(querystring.Get("RFundID"), out intParser) ? intParser : 0, BranchID = int.TryParse(querystring.Get("BranchID"), out intParser) ? intParser : 0, //BranchForReplenishID = int.TryParse(querystring.Get("BranchForReplenishID"), out intParser) ? intParser : 0, Number = int.TryParse(querystring.Get("Number"), out intParser) ? intParser : 0, Date = querystring.Get("Date"), CheckNo = querystring.Get("CheckNo"), CheckDate = querystring.Get("CheckDate"), Amount = decimal.TryParse(querystring.Get("Amount"), out decimalParser) ? decimalParser : 0, PayeeID = int.TryParse(querystring.Get("PayeeID"), out intParser) ? intParser : 0, Particulars = querystring.Get("Particulars"), Details = rfunddetails, UserID = userProfile.UserId, COAIndSubID = int.TryParse(querystring.Get("COAIndSubID"), out intParser) ? intParser : 0 }; string isInsert = querystring.Get("TransType"); string param = WebCommon.ToXML(rFund); return(RFundDAL.Manage(param, isInsert)); }
public static bool UnpostRecord(NameValueCollection querystring) { int number = int.TryParse(querystring.Get("Number"), out number) ? number : 0; int branchid = int.TryParse(querystring.Get("BranchID"), out branchid) ? branchid : 0; return(RFundDAL.UnpostRecord(number, branchid)); }
public static List <RFPCCVFund> GetRFPCCVFund(NameValueCollection querystring) { int branchid = int.TryParse(querystring.Get("BranchID"), out branchid) ? branchid : 0; string criteria = querystring.Get("Criteria"); int detailtypeid = int.TryParse(querystring.Get("DetailTypeID"), out detailtypeid) ? detailtypeid : 0; return(RFundDAL.GetRFPCCVFund(branchid, criteria, detailtypeid)); }
public static bool PostRecord(NameValueCollection querystring, bool finalpost = false) { int rfid = int.TryParse(querystring.Get("RFundID"), out rfid) ? rfid : 0; UserProfile userProfile = WebCommon.GetUserProfile(); return(RFundDAL.PostRecord(rfid, userProfile.UserId, finalpost)); }
public static string CheckTransactionEncodingStatus(NameValueCollection querystring) { int param; DateTime dat; int branchID = int.TryParse(querystring.Get("intIDMasLocation"), out param) ? param : 0; int moduleID = int.TryParse(querystring.Get("intIDMasModuleLocking"), out param) ? param : 0; //string encodingDate = DateTime.TryParse(querystring.Get("datEncoding"), out dat) ? dat.ToShortDateString() : string.Empty; string encodingDate = querystring.Get("datEncoding"); int intIDSecUser = int.TryParse(querystring.Get("intIDSecUser"), out param) ? param : 0; return(RFundDAL.CheckTransactionEncodingStatus(branchID, moduleID, encodingDate, intIDSecUser)); }
public static List <RFundDetail> GetRFundDetail(NameValueCollection querystring) { int rfundid = int.TryParse(querystring.Get("RFundID"), out rfundid) ? rfundid : 0; return(RFundDAL.GetRFundDetail(rfundid)); }
public static List <RFBranchForReplenish> GetRFBranchForReplenish() { return(RFundDAL.GetRFBranchForReplenish()); }
public static List <RFCOASubInd> GetCOASubsidiary(NameValueCollection querystring) { string criteria = querystring.Get("Criteria");; return(RFundDAL.GetRFCOAIndSub(criteria)); }