Пример #1
0
        /// <summary>
        /// 初始数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void View_OnLoadData(object sender, Views.DataManage.RedDrugEventArgs e)
        {
            DataTable dt = new DataTable();

            dt = this.Model.GetRedDrug(e.Whichpage.ToString());
            this.View.ExeInitData(dt);
            //if (dt != null && dt.Rows != null && dt.Rows.Count != 0)
            //{
            //    this.View.ExeInitData(dt);
            //}
        }
Пример #2
0
        /// <summary>
        /// 删除时间维护数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void View_OnDeleteTimeSet(object sender, Views.DataManage.RedDrugEventArgs e)
        {
            bool IsDelete = this.Model.DeleteTimeSet(e.UserId, e.TimeId);

            if (IsDelete)
            {
                //this.View.ShowMessage("删除成功");
            }
            else
            {
                this.View.ShowMessage("删除失败");
            }
        }