Exemplo n.º 1
0
 public void Delete(Model.ProcessCategory processCategory)
 {
     //
     // todo:add other logic here
     //
     this.Delete(processCategory.ProcessCategoryId);
 }
Exemplo n.º 2
0
        public bool ExistsExcept(Model.ProcessCategory e)
        {
            Hashtable paras = new Hashtable();

            paras.Add("newId", e.Id);
            paras.Add("oldId", Get(e.ProcessCategoryId) == null?null:Get(e.ProcessCategoryId).Id);
            return(sqlmapper.QueryForObject <bool>("ProcessCategory.existsexcept", paras));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Insert a ProcessCategory.
 /// </summary>
 public void Insert(Model.ProcessCategory processCategory)
 {
     //
     // todo:add other logic here
     //
     //Validate(processCategory);
     if (accessor.Exists(processCategory.Id))
     {
         throw new Helper.InvalidValueException(Model.ProcessCategory.PROPERTY_ID);
     }
     //processCategory.ProcessCategoryId = Guid.NewGuid().ToString();
     processCategory.InsertTime = DateTime.Now;
     accessor.Insert(processCategory);
 }
Exemplo n.º 4
0
        private void gridView1_CellValueChanging(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
        {
            Model.ProcessCategory cate = this.gridView1.GetRow(e.RowHandle) as Model.ProcessCategory;
            if (e.Value == null)
            {
                return;
            }
            switch (e.Column.Name)
            {
            case "gridColumn1":
                cate.Id = e.Value.ToString();
                break;

            case "gridColumn2":
                cate.ProcessCategoryName = e.Value.ToString();
                break;
            }
        }
Exemplo n.º 5
0
 public Model.ProcessCategory GetPrev(Model.ProcessCategory e)
 {
     return(sqlmapper.QueryForObject <Model.ProcessCategory>("ProcessCategory.get_prev", e));
 }
Exemplo n.º 6
0
 public Model.ProcessCategory GetNext(Model.ProcessCategory e)
 {
     return(sqlmapper.QueryForObject <Model.ProcessCategory>("ProcessCategory.get_next", e));
 }
Exemplo n.º 7
0
 public bool HasRowsAfter(Model.ProcessCategory e)
 {
     return(sqlmapper.QueryForObject <bool>("ProcessCategory.has_rows_after", e));
 }
Exemplo n.º 8
0
 public bool HasRowsBefore(Model.ProcessCategory e)
 {
     return(sqlmapper.QueryForObject <bool>("ProcessCategory.has_rows_before", e));
 }
Exemplo n.º 9
0
 public void Update(Model.ProcessCategory e)
 {
     this.Update <Model.ProcessCategory>(e);
 }
Exemplo n.º 10
0
 public void Insert(Model.ProcessCategory e)
 {
     this.Insert <Model.ProcessCategory>(e);
 }
Exemplo n.º 11
0
 public Model.ProcessCategory GetNext(Model.ProcessCategory e)
 {
     return(accessor.GetNext(e));
 }
Exemplo n.º 12
0
 public Model.ProcessCategory GetPrev(Model.ProcessCategory e)
 {
     return(accessor.GetPrev(e));
 }
Exemplo n.º 13
0
 public bool HasRowsAfter(Model.ProcessCategory e)
 {
     return(accessor.HasRowsAfter(e));
 }
Exemplo n.º 14
0
 public bool HasRowsBefore(Model.ProcessCategory e)
 {
     return(accessor.HasRowsBefore(e));
 }
Exemplo n.º 15
0
 public bool ExistsExcept(Model.ProcessCategory e)
 {
     return(accessor.ExistsExcept(e));
 }
Exemplo n.º 16
0
 private void bindingSource1_CurrentChanged(object sender, EventArgs e)
 {
     this.SelectItem = this.bindingSource1.Current as Model.ProcessCategory;
 }