| | |
| | | public partial class DeliverPlanYijiao : BasePage |
| | | { |
| | | |
| | | OA_DeliverPlanBLL _OA_DeliverPlanBLL = null; |
| | | OA_DeliverPlanPaicheBLL _OA_DeliverPlanBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | OA_CarManageBll _OA_CarManageBll = null; |
| | | |
| | |
| | | public DeliverPlanYijiao() |
| | | { |
| | | |
| | | _OA_DeliverPlanBLL = new OA_DeliverPlanBLL(); |
| | | _OA_DeliverPlanBLL = new OA_DeliverPlanPaicheBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | _OA_CarManageBll = new OA_CarManageBll(); |
| | | |
| | |
| | | { |
| | | |
| | | |
| | | this.IsBusinessManager.Items.Add(new ListItem("业务经理", "1")); |
| | | this.IsBusinessManager.Items.Add(new ListItem("工厂物流部", "2")); |
| | | |
| | | |
| | | this.IsBusinessManager.SelectedValue = "1"; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | string keyid = Request["keyid"]; |
| | | string ids = Request["ids"]; |
| | | var deliverPlan = _OA_DeliverPlanBLL.GetModelByKeyid(ids.ToGuid2(), null, null); |
| | | if (deliverPlan.Transferstatus.HasValue && deliverPlan.Transferstatus != 0) |
| | | { |
| | | if(deliverPlan.TransferType.Value == 1) |
| | | { |
| | | this.IsBusinessManager.Items.Add(new ListItem(deliverPlan.TransferName, "1")); |
| | | this.IsBusinessManager.Items.Add(new ListItem("工厂物流部", "2")); |
| | | this.IsBusinessManager.SelectedValue = deliverPlan.Transferstatus.Value.ToString(); |
| | | } |
| | | else |
| | | { |
| | | this.IsBusinessManager.Items.Add(new ListItem("业务经理", "1")); |
| | | this.IsBusinessManager.Items.Add(new ListItem("工厂物流部", "2")); |
| | | this.IsBusinessManager.SelectedValue = "1"; |
| | | } |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | this.IsBusinessManager.Items.Add(new ListItem("业务经理", "1")); |
| | | this.IsBusinessManager.Items.Add(new ListItem("工厂物流部", "2")); |
| | | this.IsBusinessManager.SelectedValue = "1"; |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | var carManage = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId).Where(x => x.StaffID == deliverPlan.DriverId).FirstOrDefault(); |
| | | if (carManage != null) |
| | | { |
| | | deliverPlan.CarId = carManage.Keyid ?? 0; |
| | | } |
| | | //var carManage = _OA_CarManageBll.SelectListByFirmId(CurrentUser.MemberId).Where(x => x.StaffID == deliverPlan.DriverId).FirstOrDefault(); |
| | | //if (carManage != null) |
| | | //{ |
| | | // deliverPlan.CarId = carManage.Keyid ?? 0; |
| | | //} |
| | | isWin = _OA_DeliverPlanBLL.UpdateModel(deliverPlan); |
| | | } |
| | | |