| | |
| | | /// </summary> |
| | | [Route("Gy_SopBill/getListByMaterProc")] |
| | | [HttpGet] |
| | | public object getListByMaterProc(Int64 HMaterID, Int64 HProcID) |
| | | public object getListByMaterProc(Int64 HMaterID, Int64 HProcID,string HType) |
| | | { |
| | | try |
| | | { |
| | | var sWhere = ""; |
| | | if (Convert.ToInt32(HMaterID) != 0 && HMaterID.ToString() != "" && Convert.ToInt32(HProcID) != 0 && HProcID.ToString() != "") |
| | | if (HType != "") |
| | | { |
| | | sWhere += " and HMaterID = " + HMaterID + " and HProcID = " + HProcID ; |
| | | if (Convert.ToInt32(HMaterID) != 0 && HMaterID.ToString() != "" && Convert.ToInt32(HProcID) != 0 && HProcID.ToString() != "") |
| | | { |
| | | sWhere += " and HMaterID = " + HMaterID + " and HProcID = " + HProcID + " and HProcID2 = " + HProcID + " and æå¯¼ä¹¦ç±»å = '"+ HType + "'"; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (Convert.ToInt32(HMaterID) != 0 && HMaterID.ToString() != "" && Convert.ToInt32(HProcID) != 0 && HProcID.ToString() != "") |
| | | { |
| | | sWhere += " and HMaterID = " + HMaterID + " and HProcID = " + HProcID + " and HProcID2 = " + HProcID + " "; |
| | | } |
| | | } |
| | | //if (Convert.ToInt32(HMaterID) != 0 && HMaterID.ToString() != "" && Convert.ToInt32(HProcID) != 0 && HProcID.ToString() != "") |
| | | //{ |
| | | // sWhere += " and HMaterID = " + HMaterID + " and HProcID = " + HProcID + " and HProcID2 = " + HProcID ; |
| | | //} |
| | | string sql1 = string.Format(@"select * from h_v_Sc_ICMOBillStatus_Tmp_SOP where 1 = 1 " + sWhere); |
| | | |
| | | ds = oCN.RunProcReturn(sql1, "h_v_Sc_ICMOBillStatus_Tmp_SOP"); |