示例#1
0
        public C_STORAGE_CODE GetDataObject()
        {
            C_STORAGE_CODE DataObject = new C_STORAGE_CODE();

            DataObject.ID           = this.ID;
            DataObject.PLANT        = this.PLANT;
            DataObject.STORAGE_CODE = this.STORAGE_CODE;
            DataObject.DESCRIPTION  = this.DESCRIPTION;
            DataObject.EDIT_TIME    = this.EDIT_TIME;
            DataObject.EDIT_EMP     = this.EDIT_EMP;
            return(DataObject);
        }
示例#2
0
        public int UpdateById(C_STORAGE_CODE NewStorageCode, OleExec DB)
        {
            Row_C_STORAGE_CODE NewStorageRow = (Row_C_STORAGE_CODE)NewRow();

            NewStorageRow.ID           = NewStorageCode.ID;
            NewStorageRow.PLANT        = NewStorageCode.PLANT;
            NewStorageRow.STORAGE_CODE = NewStorageCode.STORAGE_CODE;
            NewStorageRow.DESCRIPTION  = NewStorageCode.DESCRIPTION;
            NewStorageRow.EDIT_EMP     = NewStorageCode.EDIT_EMP;
            NewStorageRow.EDIT_TIME    = NewStorageCode.EDIT_TIME;
            int result = DB.ExecuteNonQuery(NewStorageRow.GetUpdateString(DBType, NewStorageCode.ID), CommandType.Text);

            return(result);
        }