Exemplo n.º 1
0
        protected virtual FieldValue[] CreateFieldValues(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document, VSM.Data.Objects.M_IDentify_Document original_M_IDentify_Document)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("IdenDoc_Code", original_M_IDentify_Document.IdenDoc_Code, theM_IDentify_Document.IdenDoc_Code));
            values.Add(new FieldValue("IdenDoc_Name", original_M_IDentify_Document.IdenDoc_Name, theM_IDentify_Document.IdenDoc_Name));
            values.Add(new FieldValue("Item_Flag", original_M_IDentify_Document.Item_Flag, theM_IDentify_Document.Item_Flag));
            values.Add(new FieldValue("CreatedBy", original_M_IDentify_Document.CreatedBy, theM_IDentify_Document.CreatedBy));
            values.Add(new FieldValue("CreatedOn", original_M_IDentify_Document.CreatedOn, theM_IDentify_Document.CreatedOn));
            values.Add(new FieldValue("ModifiedBy", original_M_IDentify_Document.ModifiedBy, theM_IDentify_Document.ModifiedBy));
            values.Add(new FieldValue("ModifiedOn", original_M_IDentify_Document.ModifiedOn, theM_IDentify_Document.ModifiedOn));
            return(values.ToArray());
        }
Exemplo n.º 2
0
        protected virtual int ExecuteAction(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document, VSM.Data.Objects.M_IDentify_Document original_M_IDentify_Document, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "M_IDentify_Document";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theM_IDentify_Document, original_M_IDentify_Document);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("M_IDentify_Document", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theM_IDentify_Document);
            return(result.RowsAffected);
        }
Exemplo n.º 3
0
 public virtual int Delete(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document)
 {
     return(ExecuteAction(theM_IDentify_Document, theM_IDentify_Document, "Select", "Delete", DeleteView));
 }
Exemplo n.º 4
0
 public virtual int Insert(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document)
 {
     return(ExecuteAction(theM_IDentify_Document, new M_IDentify_Document(), "New", "Insert", InsertView));
 }
Exemplo n.º 5
0
 public virtual int Update(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document)
 {
     return(Update(theM_IDentify_Document, SelectSingle(theM_IDentify_Document.IdenDoc_Code)));
 }
Exemplo n.º 6
0
 public virtual int Update(VSM.Data.Objects.M_IDentify_Document theM_IDentify_Document, VSM.Data.Objects.M_IDentify_Document original_M_IDentify_Document)
 {
     return(ExecuteAction(theM_IDentify_Document, original_M_IDentify_Document, "Edit", "Update", UpdateView));
 }
Exemplo n.º 7
0
 public List <VSM.Data.Objects.M_IDentify_Document> Select(VSM.Data.Objects.M_IDentify_Document qbe)
 {
     return(Select(qbe.IdenDoc_Code, qbe.IdenDoc_Name, qbe.Item_Flag, qbe.CreatedBy, qbe.CreatedOn, qbe.ModifiedBy, qbe.ModifiedOn));
 }
Exemplo n.º 8
0
 public static List <VSM.Data.Objects.M_IDentify_Document> Select(VSM.Data.Objects.M_IDentify_Document qbe)
 {
     return(new M_IDentify_DocumentFactory().Select(qbe));
 }