//[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; }
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; }
public FrmGetInParater(List <Paramater> pp, User user, Deptment dept) { InitializeComponent(); _paralist = pp; _user = user; _dept = dept; }
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 调用后添加任何构造函数代码 // }
public FrmZyInpatReg(HIS.MZDoc_BLL.Patient patient, User user, Deptment deptment) { InitializeComponent(); this._patient = patient; this._user = user; this._deptment = deptment; }
public FrmKJDeptRpt(long currentUserId, long currentDeptId, string chineseName) { InitializeComponent(); _currentUser = new User(currentUserId); _currentDept = new Deptment(currentDeptId); this.Text = chineseName; }
/// <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(); }
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; }
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; }
//初始化 public FrmReport(User user, Deptment dept) { _user = user; _dept = dept; _currentDeptidname = dept.Name; InitializeComponent(); _reportProcess = new ReportProcess(); }
/// <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(); }
public ActionResult DeleteConfirmed(int id) { Deptment deptment = db.Deptments.Find(id); db.Deptments.Remove(deptment); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
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; }
public FrmBedShowController(IFrmBedShowView _view) { view = _view; ds = new DataSet(); user = view.currentUser; dept = view.currentDept; LoadBedInfo(); }
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; }
public FrmSsMain(long currentUserId, long currentDeptId, string chineseName) { InitializeComponent(); _currentUser = new User(currentUserId); _currentDept = new Deptment(currentDeptId); Init(false); firstLoad = false; }
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; }
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); }
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; }
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(); }
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); }
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(); }
public FrmHisReport(long currentUserId, long currentDeptId, string chineseName) { InitializeComponent(); _currentUser = new User(currentUserId); _currentDept = new Deptment(currentDeptId); this.Text = chineseName; LoadReports(); }
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(); }
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; }
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; }
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); }
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; }