Esempio n. 1
0
        public C_ACTION_CODE GetDataObject()
        {
            C_ACTION_CODE DataObject = new C_ACTION_CODE();

            DataObject.ID                  = this.ID;
            DataObject.ACTION_CODE         = this.ACTION_CODE;
            DataObject.ENGLISH_DESCRIPTION = this.ENGLISH_DESCRIPTION;
            DataObject.CHINESE_DESCRIPTION = this.CHINESE_DESCRIPTION;
            DataObject.EDIT_TIME           = this.EDIT_TIME;
            DataObject.EDIT_EMP            = this.EDIT_EMP;
            return(DataObject);
        }
Esempio n. 2
0
        public int UpdateById(C_ACTION_CODE NewActionCode, OleExec DB)
        {
            Row_C_ACTION_CODE NewActionCodeRow = (Row_C_ACTION_CODE)NewRow();

            NewActionCodeRow.ID                  = NewActionCode.ID;
            NewActionCodeRow.ACTION_CODE         = NewActionCode.ACTION_CODE;
            NewActionCodeRow.ENGLISH_DESCRIPTION = NewActionCode.ENGLISH_DESCRIPTION;
            NewActionCodeRow.CHINESE_DESCRIPTION = NewActionCode.CHINESE_DESCRIPTION;
            NewActionCodeRow.EDIT_EMP            = NewActionCode.EDIT_EMP;
            NewActionCodeRow.EDIT_TIME           = NewActionCode.EDIT_TIME;
            int result = DB.ExecuteNonQuery(NewActionCodeRow.GetUpdateString(DBType, NewActionCode.ID), CommandType.Text);

            return(result);
        }