public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); m_commonFacade = new CommonDataFacade(this); m_facade = new SOPendingFacade(this); spConditions.DataContext = m_query = new SOPendingQueryFilter(); IniPageData(); }
/// <summary> /// 根据订单号获取对象 /// </summary> /// <param name="soSysNo">订单编号</param> /// <returns>对象实体</returns> public SOPending GetBySysNo(int soSysNo) { SOPending result = null; SOPendingQueryFilter query = new SOPendingQueryFilter() { SOSysNo = soSysNo }; int count = 0; var dt = ObjectFactory <ISOQueryDA> .Instance.PendingListQuery(query, out count, false); if (dt.Rows.Count > 0) { DataRow row = dt.Rows[0]; result = DataMapper.GetEntity <SOPending>(row); } return(result); }
public void ExportSOPending(SOPendingQueryFilter request, ColumnSet[] columns) { request.CompanyCode = CPApplication.Current.CompanyCode; restClient.ExportFile("/SOService/SO/QueryPending", request, columns); }
/// <summary> /// 查询订单Pending信息 /// </summary> /// <param name="query"></param> /// <param name="callback"></param> public void QuerySOPending(SOPendingQueryFilter request, EventHandler <RestClientEventArgs <dynamic> > callback) { request.CompanyCode = CPApplication.Current.CompanyCode; restClient.QueryDynamicData("/SOService/SO/QueryPending", request, callback); }
public QueryResult QueryPending(SOPendingQueryFilter filter) { return(QueryList <SOPendingQueryFilter>(filter, ObjectFactory <ISOQueryDA> .Instance.PendingListQuery)); }