示例#1
0
        void view_OnUpdateDoctor(object sender, Views.DoctorArgs e)
        {
            bool IsUpdateDoctor = Model.UpdateDoctor(e.DoctorName, e.DoctorNo, e.DoctorPinyin, e.DeptId, e.DescriptId, e.UserId);

            if (!IsUpdateDoctor)
            {
                View.ShowMessage("修改失败");
            }
        }
示例#2
0
        void view_OnInsertDoctor(object sender, Views.DoctorArgs e)
        {
            bool IsInsertDoctor = Model.AddDoctor(e.DoctorName, e.DoctorNo, e.DoctorPinyin, e.DeptId, e.DescriptId, e.UserId);

            if (!IsInsertDoctor)
            {
                View.ShowMessage("添加失败");
            }
        }
示例#3
0
        void view_OnDeleteDoctor(object sender, Views.DoctorArgs e)
        {
            bool IsDeleteDoctor;

            using (CJia.Transaction trans = new Transaction(CJia.DefaultOleDb.DefaultAdapter))
            {
                IsDeleteDoctor = Model.DeleteDoctor(trans.ID, e.UserId, e.DoctorId, e.DoctorNo);
                trans.Complete();
            }
            if (!IsDeleteDoctor)
            {
                View.ShowMessage("删除失败");
            }
        }
示例#4
0
        void view_OnInsertUserDoc(object sender, Views.DoctorArgs e)
        {
            bool isInser;

            using (CJia.Transaction trans = new Transaction(CJia.DefaultOleDb.DefaultAdapter))
            {
                isInser = Model.InsertDocUser(trans.ID, e.DoctorName, e.DoctorNo, e.DoctorPinyin, e.DeptId, e.DescriptId, User.UserData.Rows[0]["USER_ID"].ToString());
                trans.Complete();
            }
            if (!isInser)
            {
                Message.Show("插入失败");
            }
        }
示例#5
0
        void view_OnQueryDoctor(object sender, Views.DoctorArgs e)
        {
            DataTable dtDoc = Model.QueryDoctor(e.KeyWord);

            View.ExeBindDoctor(dtDoc);
        }
示例#6
0
        void view_OnQueryDocDescript(object sender, Views.DoctorArgs e)
        {
            DataTable dtDocDesript = Model.QueryDocDescript(e.KeyWord);

            View.ExeBindDocDescript(dtDocDesript);
        }
示例#7
0
        void view_OnCheckDoctorNo(object sender, Views.DoctorArgs e)
        {
            bool IsHave = Model.CheckUserNo(e.DoctorNo);

            View.exeBindIsDocNoHave(IsHave);
        }