| | |
| | | /// </summary> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<EC_OrderBasic> SelectModelPageWorkBook(Infrastructure.Query.Pagination pagination, Guid _MemberID, string txtBeginDate, string txtEndDate, string txtOrderId, string txtSearchyjname, string selCustormerManager, string selBusinessManager, string selOrderStates) |
| | | public IEnumerable<EC_OrderBasic> SelectModelPageWorkBook(Infrastructure.Query.Pagination pagination, Guid _MemberID, string txtBeginDate, string txtEndDate, string txtOrderId, string txtSearchyjname, string selCustormerManager, string selBusinessManager, string selOrderStates, string BuyerName) |
| | | { |
| | | try |
| | | { |
| | |
| | | if (!string.IsNullOrEmpty(txtSearchyjname)) |
| | | condition += " and ob.DocumentName like '%" + txtSearchyjname + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(BuyerName)) |
| | | condition += " and ob.BuyerName like '%" + BuyerName + "%'"; |
| | | |
| | | if (!string.IsNullOrEmpty(selCustormerManager)) |
| | | condition += " and oe.CustomerManagerId = '" + selCustormerManager + "'"; |
| | | |
| | |
| | | condition += " and oe.BusinessManagerId = '" + selBusinessManager + "'"; |
| | | |
| | | if (!string.IsNullOrEmpty(selOrderStates)) |
| | | condition += " and ob.OrderState = '" + selOrderStates + "'"; |
| | | { |
| | | if(selOrderStates == "0") |
| | | { |
| | | condition += " and ob.OrderState in (1,2,3,4)"; |
| | | } |
| | | else if (selOrderStates == "1") |
| | | { |
| | | condition += " and ob.OrderState in ( 5,6,-1)"; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |