using System; using System.Collections.Generic; using System.Text; using System.Data; using Pub_Class; using Model; using System.Windows.Forms; using SQLHelper; namespace BLL { public class ClsK3Pub_BLL { /// /// µÃµ½½ðµûK3Åú´Î /// /// public static string Fun_GetBatchNo_K3(Int64 HMaterID,string VNum) { try { ClsCNK3 oCn = new ClsCNK3(); DataSet ds; string sBatchNo = ""; switch (VNum) { case "12.0": //ɾ³ýÖ÷±í ds=oCn.RunProcReturn("exec h_p_Kf_GetBatchNo_K3 " + HMaterID.ToString(),"xt_xtgnb"); if (ds == null || ds.Tables[0].Rows.Count == 0) { return ""; } sBatchNo = ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBatchNo"]); break; case "12.1": //ɾ³ýÖ÷±í ds = oCn.RunProcReturn("exec h_p_Kf_GetBatchNo_K3 " + HMaterID.ToString(), "xt_xtgnb"); if (ds == null || ds.Tables[0].Rows.Count == 0) { return ""; } sBatchNo = ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBatchNo"]); break; default: sBatchNo = ""; break; } return sBatchNo; } catch (Exception e) { return ""; } } } }