public DataTable M_SKULastCost_Select(M_SKULastCost_Entity mse) { string sp = "M_SKULastCost_Select"; Dictionary <string, ValuePair> dic = new Dictionary <string, ValuePair> { { "@AdminNO", new ValuePair { value1 = SqlDbType.VarChar, value2 = mse.AdminNO } }, }; return(SelectData(dic, sp)); }
public bool M_SKULastCost_Select(M_SKULastCost_Entity mse) { M_SKULastCost_DL msdl = new M_SKULastCost_DL(); DataTable dt = msdl.M_SKULastCost_Select(mse); if (dt.Rows.Count > 0) { mse.LastCost = dt.Rows[0]["LastCost"].ToString(); return(true); } else { return(false); } }