// GET: Center public ActionResult Index() { ViewBag.UserName = DBUserInfo.NickName; ViewBag.HeadImageUrl = CommFunction.HeadImage(DBUserInfo.openID); ViewBag.CompanyName = "佣金0.00元"; ViewBag.openid = DBUserInfo.openID; //默认激活那个页面 Actived(Request.RequestContext.RouteData.Values["id"] != null ? Request.RequestContext.RouteData.Values["id"].ToString().ToInt() : 1); //客户列表数据 var queryCustomerList = from row in Customer.GetCustomerList("CrUserID='{0}'".FormatWith(DBUserInfo.UserID)).AsEnumerable() select new CustomerQuery { ID = row.Field <Guid>("ID"), Name = row.Field <string>("CusName"), Num = row.Field <int>("OrderNum"), Phone = row.Field <string>("CusPhone"), Sex = row.Field <string>("Sex") }; ViewBag.CustomerList = queryCustomerList.ToList(); //获取项目列表 ViewBag.ProjectList = Project.GetChooseList(); //获取结佣信息 ViewBag.UserWaitFee = Fee.GetFee(false, DBUserInfo.UserID.ToGuid()).ToMoney(2); ViewBag.UserOverFee = Fee.GetFee(true, DBUserInfo.UserID.ToGuid()).ToMoney(2); ViewBag.ActivityRule = Setting.FindFirst().ActivityRule; return(View()); }
public int GetTollFee(DateTime date, IVehicle vehicle) { if (IsTollFreeDate(date) || IsTollFreeVehicle(vehicle)) { return(0); } return(Fee.GetFee(date)); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { int FeeID = Convert.ToInt16(dgBreakdown.Rows[SelectedFee].Cells[0].Value); Fee fee = Fee.GetFee(FeeID); frm_settings_fee_entry frm = new frm_settings_fee_entry(fee); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); DisplayFeeSummary(); }