/// <summary> /// get worker selected order data /// </summary> /// <param name="worker_no">worker no</param> /// <returns>worker selected order data</returns> public List <WorkerSelectedOrderView> GetWorkerSelectedOrderData(string worker_no) { IMainDal dal = new MainDal(); Dictionary <string, object> pms = new Dictionary <string, object>(); pms.Add("worker_no", worker_no); return(dal.ReadModelListByPms <WorkerSelectedOrderView>("Operator", "GetWorkerSelectedOrderData", pms)); }
/// <summary> /// get all wkc has been selected by worker /// </summary> /// <param name="worker_no">current worker no</param> /// <returns>all wkc has been selected by this worker</returns> public List <WorkerSelectedWkcView> GetWorkerSelectedWkc(string worker_no) { IMainDal dal = new MainDal(); Dictionary <string, object> pms = new Dictionary <string, object>(); pms.Add("worker_no", string.Format("%{0}%", worker_no)); return(dal.ReadModelListByPms <WorkerSelectedWkcView>("Operator", "GetWorkerSelectedWkc", pms)); }
/// <summary> /// read single model /// </summary> /// <typeparam name="T">model type</typeparam> /// <param name="pms">query parameter</param> /// <returns>model list</returns> public virtual List <T> ReadModelListByPms <T>(Dictionary <string, object> pms) where T : class { IMainDal dal = new MainDal(); return(dal.ReadModelListByPms <T>(pms)); }
/// <summary> /// get submit source data from scada server /// </summary> /// <returns></returns> public List <Mes_ua_submit> GetSubmitSourceDataFromScada() { IMainDal dal = new MainDal(); return(dal.ReadModelListByPms <Mes_ua_submit>("Scada", "GetSubmitSourceDataFromScada")); }