public RationModel GetRationSearch(int pYear, int pMonth) { RationDAL dal = new RationDAL(); ParamDAL paramdal = new ParamDAL(); RationModel model = new RationModel(); model.ListMonth = paramdal.GetMonths(); model.ListYear = paramdal.GetYears(); model.ListRation = dal.GetRationSearch(pYear, pMonth); return(model); }
public CaptureParam GetParamCapture(int userTypeId, int userId) { SoapKitchenDAL sKDal = new SoapKitchenDAL(); CaptureParam capModel = new CaptureParam(); ParamDAL parDal = new ParamDAL(); capModel.Months = parDal.GetMonths(); capModel.Years = parDal.GetYears(); capModel.SoapKitchens = sKDal.GetSoapKitchenByUser(userTypeId, userId); return(capModel); }
public CodeParam GetParamCode(int pUserId) { CodeParam capModel = new CodeParam(); ParamDAL parDal = new ParamDAL(); InspectionCodeDAL ins = new InspectionCodeDAL(); capModel.ListCode = ins.GetCodesByUserId(pUserId); capModel.Months = parDal.GetMonths(); capModel.Years = parDal.GetYears(); return(capModel); }
public GencodeDayParam GetParamGen() { GencodeDayParam capModel = new GencodeDayParam(); ParamDAL parDal = new ParamDAL(); GencodeDayDAL ins = new GencodeDayDAL(); capModel.Day = null; capModel.listGencodeDayDTO = ins.GetGenerationCodeDayAll(); capModel.Months = parDal.GetMonths(); capModel.Years = parDal.GetYears(); return(capModel); }
public void UpdateMonth(MonthDTO dto) { ParamDAL dal = new ParamDAL(); dal.UpdateMonth(dto); }
public void UpdateStatus(StatusDTO dto) { ParamDAL dal = new ParamDAL(); dal.UpdateStatus(dto); }
public void UpdateYear(YearDTO dto) { ParamDAL dal = new ParamDAL(); dal.UpdateYear(dto); }
public List <StateDTO> GetActiveStates() { ParamDAL dal = new ParamDAL(); return(dal.GetActiveStates()); }
public List <ConditionDTO> GetActiveCondition() { ParamDAL dal = new ParamDAL(); return(dal.GetActiveCondition()); }
public void ActivateYear(int id) { ParamDAL dal = new ParamDAL(); dal.ActivateYear(id); }
public void DeactivateMonth(int id) { ParamDAL dal = new ParamDAL(); dal.DeactivateMonth(id); }
public void DeactivateStatus(int id) { ParamDAL dal = new ParamDAL(); dal.DeactivateStatus(id); }
public List <YearDTO> GetYears() { ParamDAL dal = new ParamDAL(); return(dal.GetYears()); }
public List <StatusDTO> GetStatus() { ParamDAL dal = new ParamDAL(); return(dal.GetStatus()); }
public List <MonthDTO> GetMonths() { ParamDAL dal = new ParamDAL(); return(dal.GetMonths()); }
public List <StateDTO> GetStatesFilter(int userTypeId, int userId) { ParamDAL dal = new ParamDAL(); return(dal.GetStatesFilter(userTypeId, userId)); }