Example #1
0
        //[20100513.1.02]
        public FrmPresManager(long currentUserId, long currentDeptId, string chineseName, int _type, bool IsOper)
        {
            InitializeComponent();
            this.Text      = chineseName;
            this.FormTitle = chineseName;
            _currentUser   = new User(currentUserId);
            _currentDept   = new Deptment(currentDeptId);

            this.lblongFee.Text  = "0.0000";
            this.lbshortFee.Text = "0.0000";

            if (_type == 0)
            {
                presType = Action.PresType.划价;
            }
            else if (_type == 1)
            {
                presType = Action.PresType.记账;
            }

            this.ControlsEnabled(Action.PresType.默认);
            this.checkBox1.Checked = true;
            Controller             = new HIS_ZYManager.Action.FrmPresManagerController(this, IsOper);

            presKind        = 0;
            _DataGridViewEx = this.dtgrdPresc;
        }
Example #2
0
        public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Sort")] Deptment deptment)
        {
            if (id != deptment.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(deptment);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!DeptmentExists(deptment.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(deptment));
        }
        //[20100514.1.04]
        public FrmStatDrugMessage(long currentUserId, long currentDeptId, string chineseName, bool _IsOper)
        {
            InitializeComponent();
            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);
            this.Text    = chineseName;

            DataTable tb = HIS.SYSTEM.BussinessLogicLayer.Classes.BaseData.GetDeptData(HIS.SYSTEM.BussinessLogicLayer.Classes.BaseData.DeptType.住院, HIS.SYSTEM.BussinessLogicLayer.Classes.BaseData.DeptType2.临床);

            tb.TableName = "Dept";

            this.cbDept.DataSource    = tb;
            this.cbDept.DisplayMember = "name";
            this.cbDept.ValueMember   = "code";

            this.chbDept.Checked      = true;
            this.chbDept.Enabled      = false;
            this.cbDept.Enabled       = false;
            this.cbDept.SelectedValue = _currentDept.DeptID;
            //this.llabrush_Click(null, null);
            if (_IsOper == true)
            {
                this.tscbType.SelectedIndex = 5;
            }
            else
            {
                this.tscbType.SelectedIndex = 0;
            }

            IsOper = _IsOper;
        }
Example #4
0
 public FrmGetInParater(List <Paramater> pp, User user, Deptment dept)
 {
     InitializeComponent();
     _paralist = pp;
     _user     = user;
     _dept     = dept;
 }
Example #5
0
        public Frmxtdz(long userID, long deptID, string functionName, Form mdiParent)
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();
            _user             = new User(userID);
            _dept             = new Deptment(deptID);
            _employeeID       = _user.EmployeeID;
            _deptID           = _dept.DeptID;
            _functionName     = functionName;
            _mdiParent        = mdiParent;
            this.dtp1.Enabled = false;
            this.dtp2.Enabled = false;
            if (_functionName.Trim() == "Fxc_yk_ymjz")
            {
                this.lblbz.Visible = true;
                this.txtbz.Visible = true;
                this.label1.Text   = "																						"+ "系统在月结前会自动进行对帐操作,并将上次月结到当前日期内所产生的数据进行汇总结帐。 ";
            }

            if (_functionName.Trim() == "Fxc_yk_unymjz")
            {
                this.label1.Text = "	   																				    "+ "注意:取消上次月结后您不能再对其数据进行恢复,在取消前请慎重考虑! ";
                this.Text        = "取消上次月结";
            }

            //
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            //
        }
Example #6
0
 public FrmZyInpatReg(HIS.MZDoc_BLL.Patient patient, User user, Deptment deptment)
 {
     InitializeComponent();
     this._patient  = patient;
     this._user     = user;
     this._deptment = deptment;
 }
Example #7
0
 public FrmKJDeptRpt(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
 }
Example #8
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="currentUserId"></param>
 /// <param name="currentDeptId"></param>
 /// <param name="chineseName"></param>
 public FrmFeeInput(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
     LoadItemInfo();
     dataGridViewEx1.DataSource = op_account.getPatList(Convert.ToInt32(_currentDept.DeptID));
     dataGridViewEx2.SetSelectionCardDataSource(itemdt, "column5");
     dataGridViewEx3.SetSelectionCardDataSource(itemdt, "column15");
     if (dataGridViewEx1.Rows.Count != 0)
     {
         patlistid = dataGridViewEx1["column12", 0].Value.ToString();
     }
     else
     {
         if (MessageBox.Show("该科室无任何病人信息列表,请重新登录选择科室", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK)
         {
             return;
         }
         else
         {
             return;
         }
     }
     refreshaccount();
 }
Example #9
0
        public FrmItemList(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);
            _filterType  = Constant.CustomFilterType;
            _searchType  = Constant.CustomSearchType;
            this.Text    = chineseName;


            DataTable dt = BaseDataFactory.GetData(baseDataType.住院临床科室);

            this.cbDept.DataSource    = dt;
            this.cbDept.DisplayMember = "name";
            this.cbDept.ValueMember   = "code";


            this.chbDept.Checked      = true;
            this.cbDept.SelectedValue = currentDeptId.ToString();
            zy_PatList     = new ZY_PatList();
            feeBillManager = new FeeBillManager();

            this.dtpB.Value = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00");
            this.dtpE.Value = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59");

            this.cb_pattype.SelectedIndex = 0;

            this.dtpB.Enabled = false;
            this.dtpE.Enabled = false;
        }
Example #10
0
        public FrmDocMain(long currentUserId, long currentDeptId, string chineseName)
        {
            Assembly thisAssemble = Assembly.GetAssembly(System.Type.GetType("HIS_ZYDocManager.日常业务.FrmDocMain"));

            rmListImages                = new ResourceManager("HIS_ZYDocManager.Resources.IconImages", thisAssemble);
            outlookLargeIcons           = new ImageList();
            outlookLargeIcons.ImageSize = new Size(32, 32);
            Bitmap icons = (Bitmap)rmListImages.GetObject("OutlookLargeIcons");

            icons.MakeTransparent(Color.FromArgb(255, 0, 255));
            outlookLargeIcons.Images.AddStrip(icons);
            InitializeComponent();
            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);
            this.Text    = chineseName;

            //创建功能菜单
            InitializeOutlookBar();
            this.tabPageControl1.SelectedIndex = 0;
            zypatlist = HIS.ZYDoc_BLL.PatInfo.PatOperation.GetInBedPatList(0, Convert.ToInt32(_currentUser.EmployeeID), Convert.ToInt32(_currentDept.DeptID));
            if (zypatlist == null || zypatlist.Count == 0)
            {
                return;
            }
            this.listView1.Items.Clear();
            this.DisPlay(zypatlist, 0);
            this.FirstBrushBR = false;
            lbts.Visible      = false;
            lbbeds.Visible    = false;
        }
Example #11
0
 //初始化
 public FrmReport(User user, Deptment dept)
 {
     _user = user;
     _dept = dept;
     _currentDeptidname = dept.Name;
     InitializeComponent();
     _reportProcess = new ReportProcess();
 }
Example #12
0
 /// <summary>
 /// 带参数构造方法
 /// </summary>
 /// <param name="currentUserId">用户ID</param>
 /// <param name="currentDeptId">科室ID</param>
 /// <param name="chineseName">窗体标题</param>
 public FrmPatOut(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
     this.frmload();
 }
Example #13
0
        public ActionResult DeleteConfirmed(int id)
        {
            Deptment deptment = db.Deptments.Find(id);

            db.Deptments.Remove(deptment);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #14
0
 public FrmOrderTrans(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
     IcM          = HIS.ZY_BLL.ObjectModel.ObjectFactory.GetObject <HIS.ZY_BLL.ObjectModel.CostManager.IcostManager>(typeof(HIS.ZY_BLL.DataModel.ZY_CostMaster));
 }
Example #15
0
 public FrmDocModel(long currentUserId, long currentDeptId)
 {
     InitializeComponent();
     _currentUser          = new User(currentUserId);
     _currentDept          = new Deptment(currentDeptId);
     Controller            = new HIS_ZYDocManager.Action.FrmModelController(this);
     this.btnApply.Enabled = true;
 }
Example #16
0
 public FrmBedShowController(IFrmBedShowView _view)
 {
     view = _view;
     ds   = new DataSet();
     user = view.currentUser;
     dept = view.currentDept;
     LoadBedInfo();
 }
Example #17
0
 public FrmPreMould(long currentUserId, long currentDeptId)
 {
     InitializeComponent();
     _currentUser       = new User(currentUserId);
     _currentDept       = new Deptment(currentDeptId);
     Controller         = new HIS_MZDocManager.Action.FrmPreMouldController(this);
     btSelected.Visible = true;
 }
Example #18
0
 public FrmSsMain(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     Init(false);
     firstLoad = false;
 }
Example #19
0
        private HIS.MZDoc_BLL.Patient _currentPatient; //当前病人

        public FrmPatInfoEdit(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser   = new User(currentUserId);
            _currentDept   = new Deptment(currentDeptId);
            this.Text      = chineseName;
            this.FormTitle = chineseName;
        }
Example #20
0
 public FrmRegister(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     this.Text    = chineseName;
     this.ToolControls_Enabled(RegType.默认);
     Controller = new FrmRegisterController(this);
 }
Example #21
0
 public FrmCostTotal(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser = new User(currentUserId);
     _currentDept = new Deptment(currentDeptId);
     _filterType  = Constant.CustomFilterType;
     _searchType  = Constant.CustomSearchType;
     this.Text    = chineseName;
 }
Example #22
0
        public FrmHisReport(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);

            this.Text = chineseName;
            this.dataGridView1.DataSource = HisReport.LoadReports();
        }
Example #23
0
 public FrmPreMould(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     this.Text      = chineseName;
     this.FormTitle = chineseName;
     _currentUser   = new User(currentUserId);
     _currentDept   = new Deptment(currentDeptId);
     Controller     = new HIS_MZDocManager.Action.FrmPreMouldController(this);
 }
Example #24
0
 public FrmSsRoom(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _user  = new User(currentUserId);
     _dept  = new Deptment(currentDeptId);
     roomop = new HIS.SS_BLL.SsRoom();
     bedop  = new HIS.SS_BLL.SsRoomBed();
     BindRooms();
 }
Example #25
0
        public FrmHisReport(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);

            this.Text = chineseName;
            LoadReports();
        }
Example #26
0
 public FrmCureApply(HIS.Model.ZY_PatList _patlist, long userid, long deptid)
 {
     InitializeComponent();
     _currentUser = new User(userid);
     _currentDept = new Deptment(deptid);
     _zypatlist   = _patlist;
     Controller   = new HIS_ZYDocManager.Action.FrmMediApplyController(this, HIS.ZYDoc_BLL.MediApply.MediType.治疗);
     Controller.GetPatlist();
 }
Example #27
0
 public FrmDocModel(long currentUserId, long currentDeptId, string chineseName)
 {
     InitializeComponent();
     _currentUser          = new User(currentUserId);
     _currentDept          = new Deptment(currentDeptId);
     this.Text             = chineseName;
     Controller            = new HIS_ZYDocManager.Action.FrmModelController(this);
     this.btnApply.Enabled = false;
 }
Example #28
0
        public FrmCollectDrug(long currentUserId, long currentDeptId, string chineseName, bool _IsOper)
        {
            InitializeComponent();

            dtDrugMessage = new DsMessageData().dtDrugMessage.Clone();

            RecDt = new DataTable();
            DataColumn col;

            col = new System.Data.DataColumn("patlistid");
            RecDt.Columns.Add(col);
            col = new System.Data.DataColumn("cureno");
            RecDt.Columns.Add(col);
            col = new System.Data.DataColumn("bedcode");
            RecDt.Columns.Add(col);
            col = new System.Data.DataColumn("Name");
            RecDt.Columns.Add(col);
            col = new System.Data.DataColumn("py_code");
            RecDt.Columns.Add(col);
            col = new System.Data.DataColumn("wb_code");
            RecDt.Columns.Add(col);

            _currentUser = new User(currentUserId);
            _currentDept = new Deptment(currentDeptId);
            this.Text    = chineseName;

            DataTable tb = BaseDataFactory.GetData(baseDataType.所有科室);

            tb.TableName = "Dept";

            this.cbPatDept.DataSource    = tb;
            this.cbPatDept.DisplayMember = "name";
            this.cbPatDept.ValueMember   = "code";

            this.cbPatDept.SelectedValue = _currentDept.DeptID;

            DataTable tb1 = HIS.ZY_BLL.DurgMessage.OP_DurgMessage.GetYfDept();

            this.cbYfDept.DataSource    = tb1;
            this.cbYfDept.DisplayMember = "name";
            this.cbYfDept.ValueMember   = "code";

            this.cbYfDept.Text = "住院药房";

            if (_IsOper == true)
            {
                this.ckdept.Enabled    = false;
                this.cbPatDept.Enabled = false;
            }

            this.ckdept.Enabled    = false;
            this.cbPatDept.Enabled = false;


            IsOper = _IsOper;
        }
Example #29
0
        private FrmEmrMouldSiteController Controller;             //控制器

        public FrmEmrMouldSite(long currentUserId, long currentDeptId, string chineseName)
        {
            InitializeComponent();
            _currentUser   = new User(currentUserId);
            _currentDept   = new Deptment(currentDeptId);
            this.Text      = chineseName;
            this.FormTitle = chineseName;

            Controller = new FrmEmrMouldSiteController(this);
        }
Example #30
0
 public FrmPatInfoEdit(long currentUserId, long currentDeptId, string chineseName, HIS.MZDoc_BLL.Patient patient)
 {
     InitializeComponent();
     _currentUser           = new User(currentUserId);
     _currentDept           = new Deptment(currentDeptId);
     this.Text              = chineseName;
     this.FormTitle         = chineseName;
     this._currentPatient   = patient;
     this.tBVisitNo.Enabled = false;
 }