Exemplo n.º 1
0
        public bool ExistsExcept(Model.IncomingKind e)
        {
            Hashtable paras = new Hashtable();

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

            case "gridColumnName":
                incomingKind.IncomingKindName = e.Value.ToString();
                break;

            case "gridColumnDesc":
                incomingKind.IncomingKindDescription = e.Value.ToString();
                break;
            }
        }
Exemplo n.º 4
0
 public Model.IncomingKind GetPrev(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_prev", e));
 }
Exemplo n.º 5
0
 public Model.IncomingKind GetNext(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <Model.IncomingKind>("IncomingKind.get_next", e));
 }
Exemplo n.º 6
0
 public bool HasRowsAfter(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_after", e));
 }
Exemplo n.º 7
0
 public bool HasRowsBefore(Model.IncomingKind e)
 {
     return(sqlmapper.QueryForObject <bool>("IncomingKind.has_rows_before", e));
 }
Exemplo n.º 8
0
 public void Update(Model.IncomingKind e)
 {
     this.Update <Model.IncomingKind>(e);
 }
Exemplo n.º 9
0
 public void Insert(Model.IncomingKind e)
 {
     this.Insert <Model.IncomingKind>(e);
 }
Exemplo n.º 10
0
 public void Delete(Model.IncomingKind incomingKind)
 {
     this.Delete(incomingKind.IncomingKindId);
 }
Exemplo n.º 11
0
 public Model.IncomingKind GetNext(Model.IncomingKind e)
 {
     return(accessor.GetNext(e));
 }
Exemplo n.º 12
0
 public Model.IncomingKind GetPrev(Model.IncomingKind e)
 {
     return(accessor.GetPrev(e));
 }
Exemplo n.º 13
0
 public bool HasRowsAfter(Model.IncomingKind e)
 {
     return(accessor.HasRowsAfter(e));
 }
Exemplo n.º 14
0
 public bool HasRowsBefore(Model.IncomingKind e)
 {
     return(accessor.HasRowsBefore(e));
 }
Exemplo n.º 15
0
 public bool ExistsExcept(Model.IncomingKind e)
 {
     return(accessor.ExistsExcept(e));
 }