using System; using System.Collections.Generic; using System.Text; using System.Data; namespace DAL { //净重 /// /// 净重 /// public class ClsGy_NetWeight_View:DBUtility.ClsGy_Base_View { // public Model.ClsGy_NetWeight_Model omodel = new Model.ClsGy_NetWeight_Model(); SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); public ClsGy_NetWeight_View() { base.MvarReportTitle = "净重设置"; base.MvarItemKey = "hx_changebill"; base.SQLName = "Select HItemID,HInterID BOM,HMaterID 物料,hpieceqty 净重 from hx_changebill Order by HItemID "; } // public void Dispose() { GC.SuppressFinalize(this); } // //返回项目信息 public override bool GetInfoByID(Int64 sItemID) { DataSet DS ; try { DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where HItemID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo); if (DS.Tables[0].Rows.Count == 0) return false; else { return GetInfo(DS); } } catch (Exception e) { throw (e); } } //返回项目信息 public override bool GetInfo(DataSet Ds) { try { omodel = new Model.ClsGy_NetWeight_Model(); omodel.HItemID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HItemID"]); omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]); omodel.HMaterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HMaterID"]); omodel.HQty = DBUtility.ClsPub.isDoule(Ds.Tables[0].Rows[0]["hpieceqty"]); // return true; } catch (Exception e) { throw (e); } } } }