public frmReports(int report) { InitializeComponent(); _userBLL = new UserBLL(); _roleBLL = new UserRoleBLL(); _dictionaryBLL = new DictionaryBLL(); _paymentBLL = new PaymentBLL(); _poolBLL = new PoolBLL(); if (report == 1) { lastDate = DateTime.Now.ToString("yyyy-MM-dd"); firstDate = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"); } else if (report == 2) { lastDate = DateTime.Now.ToString("yyyy-MM-dd"); firstDate = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd"); } else { firstDate = dtpStartDate.Value.ToShortDateString(); lastDate = dtpEndDate.Value.ToShortDateString(); groupDate.Visible = true; } }
public void TestMakePayment() { var builder = new Builder.PaymentModelBuilder(); var model = builder.WithTestValues() .CardNumber(12345353435635) .Build(); var bill = new BescomBill() { BillId = (new Random()).Next(), BillAmount = 100, BillNo = "23d", Customer = new Customer(), DueDate = DateTime.Today.Add(TimeSpan.FromDays(3)), GeneratedDate = DateTime.Today, ServiceName = ServiceProviderType.Electicity.ToString() }; Mock <IPaymentDAL> mock = new Mock <IPaymentDAL>(); mock.Setup(e => e.MakePayment(model)).Returns(1); this.paymentBLL = new PaymentBLL(mock.Object, new ServiceProviderFactory()); var result = this.paymentBLL.MakePayment(model, ServiceProviderType.Electicity, bill); Assert.IsNotNull(result); }
public dynamic GetPaymentList() { PaymentBLL bll = new PaymentBLL(); List <P_Payment> list = bll.GetPaymentList(); return(list); }
void GetPay(Payment pay) { PaymentBLL paymentBLL = new PaymentBLL(); pay.UserID = last.UserID; paymentBLL.Add(pay); }
public ActionResult List() { var paymentDb = new PaymentBLL(); List <Payment> allPayments = paymentDb.showAllPayments(); return(View(allPayments)); }
private void GetTotalRecords() { List <SearchRow> SearchRowsList = Session["SearchRowsList"] as List <SearchRow>; string where = "(" + new SearchBLL().GetSearchSql(SearchRowsList) + ")" + BasicFilter; if (SearchType == Common.Tools.CaseTableType) { this.lblTitle.Text = CompanyName + " : 案件记录"; TotalRecords = new CaseBLL(int.Parse(CompanyID)).GetCaseTotalItems(where).ToString(); } else if (SearchType == Common.Tools.BalanceTableType) { this.lblTitle.Text = CompanyName + " : 余额记录"; TotalRecords = new BalanceBLL(int.Parse(CompanyID)).GetBalanceTotalItems(where).ToString(); } else if (SearchType == Common.Tools.PaymentTableType) { this.lblTitle.Text = CompanyName + " : 每日还款记录"; TotalRecords = new PaymentBLL(int.Parse(CompanyID)).GetPaymentTotalItems(where).ToString(); } PagingControl1.TotalRecords = int.Parse(TotalRecords); }
public ActionResult Delete(int id) { var paymentDb = new PaymentBLL(); Payment aPayment = paymentDb.findPayments(id); return(View(aPayment)); }
public int?Login(LoginModel loginobj) { HttpResponseMessage message = new HttpResponseMessage(); PaymentBLL bllobj = new PaymentBLL(); int?Result = bllobj.LoginCustomer(loginobj); if (Result > 0) { Result1 = bllobj.LoginVerify(loginobj.MobileNumber); if (Result1 > 0) { message.Content = new StringContent("LOGIN SUCCESS"); } else { message.Content = new StringContent("LOGIN PrePaid"); } } else { message.Content = new StringContent("LOGIN FAIL"); Result1 = -1; } return(Result1); }
public ActionResult PrePaidView(FormCollection forms) { try { //var Data_Session = new LoginModel(); //if ((Object)Session["txtMobileNumber"] != null) //{ // Data_Session.Session_Val = "Welcome" + Convert.ToInt64(Session["MobileNumber"]).ToString(); //} //else //{ // Data_Session.Session_Val = "Session Expired"; //} PrePaidModel preobj = new PrePaidModel(); PaymentBLL bllobj = new PaymentBLL(); int? result = bllobj.CheckNumber(Convert.ToInt64(forms["txtMobileNumber"]), forms["dllOperator"]); if (result > 0) { preobj.PrepaidList = bllobj.Display(forms["dllOperator"]); } } catch (Exception ex) { logger.Info(ex.Message); logger.Debug(ex.Message); } return(View()); }
public IActionResult Register(int ClientId, decimal Amount) { PaymentBLL paymentBLL = new PaymentBLL(); paymentBLL.RegisterPayment(ClientId, Amount); return(RedirectToAction("Index", "Clients")); }
public static List <Payment> GetPayments(bool?state = true) { var paymentBLL = new PaymentBLL(); ListPayments = paymentBLL.GetPayments(state); return(ListPayments); }
public frmPayment() { InitializeComponent(); helper = new PaymentHelper(); flag = false; _payment = new Payment(); _paymentBLL = new PaymentBLL(); }
public dynamic GetSearchPaymentList() { string name = Fun.Query("name"); PaymentBLL bll = new PaymentBLL(); List <P_Payment> list = bll.GetSearchPaymentList(name); return(list); }
public int?ForgotPassword(RegisterModel model) { HttpResponseMessage message = new HttpResponseMessage(); PaymentBLL bllobj = new PaymentBLL(); int?Result = bllobj.ForgotPasswordRegister(model); return(Result); }
public FormReceiveMoney() { InitializeComponent(); cusController = new CustomerBLL(); ListCus = new List <Customer>(); paymentController = new PaymentBLL(); Load(); cusChosen = new Customer(); }
private void CreateReceipt(object sender, PrintPageEventArgs e) { Graphics graphic = e.Graphics; Font font = new Font("Times New Roman", 15); int startX = 10; int startY = 10; int offset = 40; string companyName = "BB Gymnastic Centre\n"; string slogan = "Be Better"; string studentName = "Student Name : \t" + cbStudentName.SelectedItem + "\n"; string paidAmount = "Paid Amount : \t" + txtPayableAmt.Text + "\n"; string paidMonth = "Paid for Month : \t" + dtpDate.Value.ToString("MMMM") + " " + dtpDate.Value.Year + "\n"; string remarks = "Remarks : \t" + txtRemark.Text + "\n"; string StaffID = "This receipt was issued by " + StaffBll.StaffLookup(StaffId) + "\n"; string currentDate = "This receipt was printed on " + DateTime.Now + "\n"; string quote = QuoteBLL.GetRandomQuote() + "\n"; string contact1 = "SH Chong - 0162773629"; string contact2 = "SF Soo - 0133057605"; string webPage = "WebPage : www.bbgimn.com"; string receiptNumber = (PaymentBLL.GetReceiptNumber() + 1).ToString(); graphic.DrawString(companyName, new Font("Times New Roman", 24), new SolidBrush(Color.Green), startX, startY); graphic.DrawString(receiptNumber, new Font("Times New Roman", 24), new SolidBrush(Color.Black), companyName.Length + 425, startY); graphic.DrawString(slogan, new Font("Times New Roman", 22), new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 5; graphic.DrawString("-------------------------------------------------------------------------\n\n", font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 5; graphic.DrawString(studentName, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(paidAmount, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(paidMonth, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(remarks, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 20; graphic.DrawString(StaffID, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(currentDate, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 5; graphic.DrawString("-------------------------------------------------------------------------", font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 5; graphic.DrawString(quote, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 5; graphic.DrawString("-------------------------------------------------------------------------", font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(contact1, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(contact2, font, new SolidBrush(Color.Black), startX, startY + offset); offset += FontHeight + 8; graphic.DrawString(webPage, font, new SolidBrush(Color.Black), startX, startY + offset); }
public dynamic GetPayment() { int id = Fun.Query("id", 0); PaymentBLL bll = new PaymentBLL(); P_Payment p = bll.GetPayment(id); Payment payment = new Payment(); payment.id = p.payment_id; payment.name = p.payment_name.Trim(); return(payment); }
public ActionResult Delete(int id, Payment deletePayment) { var paymentDb = new PaymentBLL(); bool deleteOK = paymentDb.deletePayment(id); if (deleteOK) { return(RedirectToAction("List")); } return(View()); }
public void OrderPaymentTest() { SystemType sType = SystemType.MobileWebSite; int userId = 616732; string uid = "*****@*****.**"; string oCode = "5437140"; int payId = 20049; MResult <string> expected = null; MResult <string> actual; actual = PaymentBLL.OrderPayment(sType, userId, uid, oCode, payId); }
public static void AddingPayment(string description) { try { var paymentBLL = new PaymentBLL(); paymentBLL.AddPayment(description); } catch (Exception ex) { throw ex; } }
public static bool DeletingPayment(int eid) { try { var paymentBLL = new PaymentBLL(); return(paymentBLL.DeletePayment(eid)); } catch (Exception ex) { throw ex; } }
public ActionResult Change(int id, Payment changePayment) { if (ModelState.IsValid) { var paymentDb = new PaymentBLL(); bool changeOK = paymentDb.changePayment(id, changePayment); if (changeOK) { return(RedirectToAction("List")); } } return(View()); }
public static void EditingPayment(int id, string description, bool state) { try { var paymentBLL = new PaymentBLL(); paymentBLL.EditPayment(id, description, state); } catch (Exception ex) { throw ex; } }
public ActionResult Register(Payment inPayment) { if (ModelState.IsValid) { var paymentDb = new PaymentBLL(); bool insertOK = paymentDb.makeNewPayment(inPayment); if (insertOK) { return(RedirectToAction("List")); } } return(View()); }
public List <PrePaidModel> GetDetails(string MobileOperator, long MobileNumber) { PrePaidModel modelObj = new PrePaidModel(); PaymentBLL bllObj = new PaymentBLL(); int? result = bllObj.CheckNumber(MobileNumber, MobileOperator); if (result > 0) { modelObj.PrepaidList = bllObj.Display(MobileOperator); } return(modelObj.PrepaidList); }
/// <summary> /// Set Grid Data source /// </summary> /// <param name="addRow"></param> /// <param name="deleteRow"></param>e protected void BindGrid(bool showRecentRecords) { string district = String.Empty; string county = String.Empty; string subCounty = String.Empty; string parish = String.Empty; string village = String.Empty; if (ddlDistrict.SelectedIndex > 0) { district = ddlDistrict.SelectedItem.Text; } if (ddlCounty.SelectedIndex > 0) { county = ddlCounty.SelectedItem.Text; } if (ddlSubCounty.SelectedIndex > 0) { subCounty = ddlSubCounty.SelectedItem.Text; } if (ddlParish.SelectedIndex > 0) { parish = ddlParish.SelectedItem.Text; } if (ddlVillage.SelectedIndex > 0) { village = ddlVillage.SelectedItem.Text; } PaymentBLL objPAPLogic = new PaymentBLL(); grdPAPs.DataSource = objPAPLogic.getCompensationPaymentExport( Convert.ToInt32(Session["PROJECT_ID"]), txtPAPName.Text.Trim(), txtPlotReference.Text.Trim(), district, county, subCounty, parish, village); grdPAPs.DataBind(); if (grdPAPs.Rows.Count > 0) { ScriptManager.RegisterStartupScript(this, this.GetType(), "showExport", "ShowExport(1);", true); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "showExport", "ShowExport(0);", true); } }
public dynamic DeletePayment() { int id = Fun.Form("id", 0); PaymentBLL bll = new PaymentBLL(); if (!bll.DeletePayment(id)) { return("失败"); } else { return("成功"); } }
public dynamic AddPayment() { string name = Fun.Form("name"); PaymentBLL bll = new PaymentBLL(); if (!bll.AddPayment(name)) { return("失败"); } else { return("成功"); } }
public ActionResult PostPaid(PostPaidModel postObj) { try { PaymentBLL bllObj = new PaymentBLL(); int? Result = bllObj.PostPaid(postObj); } catch (Exception ex) { logger.Info(ex.Message); logger.Debug(ex.Message); } return(View()); }
public ActionResult Login(LoginModel loginObj) { try { Session["txtMobileNumber"] = loginObj.MobileNumber; PaymentBLL bllObj = new PaymentBLL(); int? Result = bllObj.LoginCustomer(loginObj); } catch (Exception ex) { logger.Info(ex.Message); logger.Debug(ex.Message); } return(View()); }
public List<T_HR_EMPLOYEESALARYRECORD> ImportExcel(UploadFileModel UploadFile, out int failcount, out int successcount, string year, string month, string paySign) { string strPath = string.Empty; //, int pageIndex, int pageSize, ref int pageCount, ref string strMsg SaveFile(UploadFile, out strPath); string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath); using (PaymentBLL bll = new PaymentBLL()) { return bll.ReadExcel(strPhysicalPath, out failcount, out successcount, year, month, paySign); } }
public void PayRemindByOrgID(string strOrgType, string strOrgID, DateTime dtCurDate, ref string strMsg) { using (PaymentBLL bll = new PaymentBLL()) { bll.PayRemindByOrgID(strOrgType, strOrgID, dtCurDate, ref strMsg); } }
public List<V_PAYMENT> GetPaymentPaging(int pageIndex, int pageSize, string sort, string filterString, string[] paras, ref int pageCount, string year, string month) { using (PaymentBLL bll = new PaymentBLL()) { IQueryable<V_PAYMENT> q = bll.GetPaymentPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, year, month); return q.Count() > 0 ? q.ToList() : null; } }
public List<T_HR_EMPLOYEESALARYRECORD> GetPaymentPagings(int pageIndex, int pageSize, string sort, string filterString, string[] paras, ref int pageCount, string year, string month, int orgtype, string orgid, string userid) { using (PaymentBLL bll = new PaymentBLL()) { IQueryable<T_HR_EMPLOYEESALARYRECORD> q = bll.GetPaymentPagings(pageIndex, pageSize, sort, filterString, paras, ref pageCount, year, month, orgtype, orgid, userid); return q.Count() > 0 ? q.ToList() : null; } }
public byte[] ExportSalaryExcel(string sort, string filterString, string[] paras, string userID) { using (PaymentBLL bll = new PaymentBLL()) { return bll.ExportSalaryExcel(sort, filterString, paras, userID); } }
public byte[] ExportExcel(string sort, string filterString, string[] paras, string year, string month, int orgtype, string orgid) { using (PaymentBLL bll = new PaymentBLL()) { return bll.ExportExcel(sort, filterString, paras, year, month, orgtype, orgid); } }
public List<T_HR_EMPLOYEESALARYRECORD> ReadExcel(string filepath, out int failcount, out int successcount, string year, string month, string paySign) { using (PaymentBLL bll = new PaymentBLL()) { return bll.ReadExcel(filepath, out failcount, out successcount, year, month, paySign); } }
public T_HR_EMPLOYEESALARYRECORD GetSalaryRecordOne(string employeeid, string year, string month) { using (PaymentBLL bll = new PaymentBLL()) { return bll.GetSalaryRecordOne(employeeid, year, month); } }
public void PaymentConfirmUpdate(List<T_HR_EMPLOYEESALARYRECORD> entitys) { using (PaymentBLL bll = new PaymentBLL()) { bll.PaymentConfirmUpdate(entitys); } }
public void PaymentUpdate(T_HR_EMPLOYEESALARYRECORD entity) { using (PaymentBLL bll = new PaymentBLL()) { bll.PaymentUpdate(entity); } }