void view_OnQueryBorrowTime(object sender, Views.BorrowTimeLenthArgs e) { DataTable dt = Model.QueryBorrowTime(); if (dt != null && dt.Rows != null && dt.Rows.Count > 0) { View.ExeBindData(dt); } }
void view_OnUpdateBorrowTime(object sender, Views.BorrowTimeLenthArgs e) { bool IsUpdate = Model.UpdateBorrowTime(e.BorrowTime, User.UserData.Rows[0]["USER_ID"].ToString(), e.BorrowTimeId); if (!IsUpdate) { View.ShowWarning("修改失败"); } }
void view_OnInsertBorrowTime(object sender, Views.BorrowTimeLenthArgs e) { bool IsInsert = Model.InsertBorrowTime(e.DocDes, e.BorrowTime, User.UserData.Rows[0]["USER_ID"].ToString()); if (!IsInsert) { View.ShowWarning("添加失败"); } }
void view_OnDeleteBorrowTime(object sender, Views.BorrowTimeLenthArgs e) { bool IsDelete = Model.DeleteBorrowTime(User.UserData.Rows[0]["USER_ID"].ToString(), e.BorrowTimeId); if (!IsDelete) { View.ShowWarning("删除失败"); } }
void view_OnQueryDocDescript(object sender, Views.BorrowTimeLenthArgs e) { View.ExeBindDocDescript(Model.QueryDocDescript()); }