public string UpdateTodoPlanResult(FormCollection forms) { sal_plan sal = new sal_plan(); UpdateModel <sal_plan>(sal); new sal_planService().UpdateTodoPlanResult(sal); return("ok"); }
public ActionResult AddPlan(int?id, FormCollection forms) { sal_plan sal = new sal_plan(); UpdateModel <sal_plan>(sal); sal.pla_chc_id = id.Value; new sal_planService().AddPlan(sal); return(RedirectToAction("AddPlan")); }
/// <summary> /// 修改销售计划结果 /// </summary> /// <param name="sal"></param> public void UpdateTodoPlanResult(sal_plan sal) { new LinqHelper().ExecuteCommand("update sal_plan set pla_result='" + sal.pla_result + "' where pla_id=" + sal.pla_id); }
/// <summary> /// 添加销售计划 /// </summary> /// <param name="sal"></param> public void AddPlan(sal_plan sal) { new LinqHelper().InsertEntity <sal_plan>(sal); }
/// <summary> /// 修改销售计划结果 /// </summary> /// <param name="sal"></param> public void UpdateTodoPlanResult(sal_plan sal) { new sal_planRepository().UpdateTodoPlanResult(sal); }
/// <summary> /// 添加销售计划 /// </summary> /// <param name="sal"></param> public void AddPlan(sal_plan sal) { new sal_planRepository().AddPlan(sal); }