public ActionResult OrderAdd(string id) { BLUser objUser = new BLUser(); List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>(); lstUser = objUser.GetChildUsersCodeAndNameOnly(_objCurrentInfo.GetCompanyCode(), _objCurrentInfo.GetUserCode()); ViewBag.Child_User_Count = lstUser.Count(); string OrderMode = id.Split('~')[0]; if (OrderMode == "Add") { ViewBag.OrderMode = OrderMode; ViewBag.action_Region_Code = _objCurrentInfo.GetRegionCode(); } else { ViewBag.OrderMode = OrderMode; ViewBag.Order_Id = id.Split('~')[1]; ViewBag.action_Region_Code = id.Split('~')[2]; } ViewBag.Current_Date = System.DateTime.Now.ToString("yyyy-MM-dd"); ViewBag.action_User_Name = _objCurrentInfo.GetUserName(); ViewBag.action_User_Code = _objCurrentInfo.GetUserCode(); ViewBag.Current_Month = System.DateTime.Now.Month + "-" + System.DateTime.Now.Year; ViewBag.Previous_Month = System.DateTime.Now.AddMonths(-1).Month + "-" + System.DateTime.Now.AddMonths(-1).Year; ViewBag.Next_Month = System.DateTime.Now.AddMonths(1).Month + "-" + System.DateTime.Now.AddMonths(1).Year; return(View()); }
// // GET: /Order/ public ActionResult OrderList() { BLUser objUser = new BLUser(); List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>(); lstUser = objUser.GetChildUsersCodeAndNameOnly(_objCurrentInfo.GetCompanyCode(), _objCurrentInfo.GetUserCode()); ViewBag.Child_User_Count = lstUser.Count(); string strRegionCode = _objCurrentInfo.GetRegionCode(); strRegionCode += "^"; ViewBag.LineOfBusiness = objBLOrder.GetCheckLineOfBusiness(strRegionCode); ViewBag.Region_Code = _objCurrentInfo.GetRegionCode(); ViewBag.Region_Name = _objCurrentInfo.GetRegionName(); ViewBag.Current_Month = System.DateTime.Now.Month + "-" + System.DateTime.Now.Year; ViewBag.Previous_Month = System.DateTime.Now.AddMonths(-1).Month + "-" + System.DateTime.Now.AddMonths(-1).Year; ViewBag.Next_Month = System.DateTime.Now.AddMonths(1).Month + "-" + System.DateTime.Now.AddMonths(1).Year; return(View()); }