Exemplo n.º 1
0
        /// <summary>
        /// 插入科室表事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void View_OnInsertDept(object sender, Views.DeptEventArgs e)
        {
            bool isSuccess = Model.InsertDept(e.DeptName, e.SortNo, e.DeptType, e.DeptEnglishName, e.DeptFirstPinyin, e.Remark);

            if (isSuccess)
            {
                Message.Show("科室【" + e.DeptName + "】保存成功");
                BIndGridDept();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 搜索
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void View_OnSearch(object sender, Views.DeptEventArgs e)
        {
            // 所查询数据状态
            string checkStatus = "";

            if (e.IsCheckedStopDept == "N")
            {
                checkStatus = "0','1";
            }
            if (e.IsCheckedStopDept == "Y")
            {
                checkStatus = "1";
            }
            View.ExeBindGridDept(Model.SelectDeptBySearch(e.StrSearchCondition, checkStatus));
        }
Exemplo n.º 3
0
 /// <summary>
 /// 新增科室
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void View_OnAddDept(object sender, Views.DeptEventArgs e)
 {
     View.ExeBindSortNo(Model.GetNextSortNo());
 }
Exemplo n.º 4
0
 /// <summary>
 /// 初始化事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void View_OnInit(object sender, Views.DeptEventArgs e)
 {
     BindDeptType();
     BIndGridDept();
 }
Exemplo n.º 5
0
 /// <summary>
 /// 停用科室事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void View_OnStopDept(object sender, Views.DeptEventArgs e)
 {
     Model.UpdateDeptByStop(e.DeptId);
     BIndGridDept();
 }