public static int UpdateMaster(long MasterID, string Name, string Note) { int retval; using (SPDataProxyTableAdapters.taSPMaster dataCmd = new SPDataProxyTableAdapters.taSPMaster()) { retval = dataCmd.Update(MasterID, Name, Note); } return retval; }
public static int InsertMaster(string Name, string Note, string TypeID) { int retval; using (SPDataProxyTableAdapters.taSPMaster dataCmd = new SPDataProxyTableAdapters.taSPMaster()) { retval = dataCmd.Insert(Name, Note, TypeID); } return retval; }
public static SPDataProxy.SPMasterDataTable GetMaster(string TypeID) { SPDataProxy.SPMasterDataTable data; using (SPDataProxyTableAdapters.taSPMaster dataCmd = new SPDataProxyTableAdapters.taSPMaster()) { data = dataCmd.GetMasterLookup(TypeID); } return data; }
public static SPDataProxy.SPMasterDataTable GetMasterDetail(long MasterID) { SPDataProxy.SPMasterDataTable data; using (SPDataProxyTableAdapters.taSPMaster dataCmd = new SPDataProxyTableAdapters.taSPMaster()) { data = dataCmd.GetMaster(MasterID); } return data; }
public static int DeleteMaster(long MasterID) { int retval; using (SPDataProxyTableAdapters.taSPMaster dataCmd = new SPDataProxyTableAdapters.taSPMaster()) { retval = dataCmd.Delete(MasterID); } return retval; }