public R_REPLACE_SN GetDataObject() { R_REPLACE_SN DataObject = new R_REPLACE_SN(); DataObject.ID = this.ID; DataObject.OLD_SN_ID = this.OLD_SN_ID; DataObject.OLD_SN = this.OLD_SN; DataObject.NEW_SN = this.NEW_SN; DataObject.EDIT_EMP = this.EDIT_EMP; DataObject.EDIT_TIME = this.EDIT_TIME; return(DataObject); }
public int AddReplaceSNRecord(R_REPLACE_SN ReplaceSn, string Bu, OleExec DB, DB_TYPE_ENUM DBType) { int result = 0; string strSql = string.Empty; Row_R_REPLACE_SN row = null; if (ReplaceSn != null) { row = (Row_R_REPLACE_SN)ConstructRow(ReplaceSn); if (row.ID == null) { row.ID = GetNewID(Bu, DB); } strSql = row.GetInsertString(DBType); result = DB.ExecSqlNoReturn(strSql, null); } return(result); }