private void Frmbrxxcx_Load(object sender, EventArgs e) { FunAddComboBox.AddBrlx(true, 0, cmbbrlx, InstanceForm.BDatabase); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); FunAddComboBox.AddOperator(true, cmbdjy, InstanceForm.BDatabase); FunAddComboBox.AddYblx(true, 0, cmbcblx, InstanceForm.BDatabase); FunAddComboBox.AddGj(true, cmbgj, InstanceForm.BDatabase); FunAddComboBox.AddMz(true, cmbmz, InstanceForm.BDatabase); // chkdjsj.Checked = true; dtpcsrq1.Value = dtpcsrq1.Value.AddYears(-1); //自动读射频卡 string sbxh = ApiFunction.GetIniString("医院健康卡", "设备型号", Constant.ApplicationDirectory + "//ClientWindow.ini"); ts_Read_hospitalCard.Icall ReadCard = ts_Read_hospitalCard.CardFactory.NewCall(sbxh); if (ReadCard != null) { ReadCard.AutoReadCard(_menuTag.Function_Name, cmbklx, txtkh); } //150108 chencan/ 右键菜单添加“诊疗卡打印” if (cfg1161.Config == "1") { ToolStripMenuItem menuprint = new ToolStripMenuItem(); menuprint.Text = "重打条码单"; menuprint.Click += new EventHandler(menuprint_Click); this.contextMenuStrip1.Items.Add(menuprint); } cmbklx.Focus(); }
private void Frmhjsf_Load(object sender, EventArgs e) { //年龄单位 DataTable tb = new DataTable(); tb.Columns.Add("ID", Type.GetType("System.Int32")); tb.Columns.Add("NAME", Type.GetType("System.String")); DataRow row = tb.NewRow(); row["ID"] = 0; row["NAME"] = "岁"; tb.Rows.Add(row); row = tb.NewRow(); row["ID"] = 1; row["NAME"] = "月"; tb.Rows.Add(row); row = tb.NewRow(); row["ID"] = 2; row["NAME"] = "天"; tb.Rows.Add(row); row = tb.NewRow(); row["ID"] = 3; row["NAME"] = "小时"; tb.Rows.Add(row); cmbDW.DisplayMember = "NAME"; cmbDW.ValueMember = "ID"; cmbDW.DataSource = tb; cmbDW.SelectedIndex = 0; //ini文件读取 string Bxm = ApiFunction.GetIniString("划价收费", "姓名处停留", Constant.ApplicationDirectory + "//ClientWindow.ini"); FunAddComboBox.Addxb(false, cmbxb, InstanceForm.BDatabase); }
private void Frmyssrtj_ByDate_Load(object sender, EventArgs e) { //FunAddComboBox.AddOperator(true, cmbuser); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } //cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); //if (cmbuser.SelectedValue == null) cmbuser.SelectedValue = "0"; //if (cmbuser.SelectedValue.ToString() != InstanceForm.BCurrentUser.EmployeeId.ToString()) // this.cmbuser.SelectedValue = "0"; cmbFG.Items.Add("列宽适应网格内容"); cmbFG.Items.Add("列宽仅适应有数据的区域"); cmbFG.SelectedIndex = 0; FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); FunAddComboBox.AddDept(true, 1, cmbdept, InstanceForm.BDatabase); //Add By Zj 2012-08-01 cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; FullCmbSfDept(); //add by zp 2013-05-24 this.list_datewhere.Add(this.dtp1); this.list_datewhere.Add(this.dtp2); }
private void Frmsk_jktj_Load(object sender, EventArgs e) { FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); if (cmbuser.SelectedValue == null) { cmbuser.SelectedValue = "0"; } if (cmbuser.SelectedValue.ToString() != InstanceForm.BCurrentUser.EmployeeId.ToString()) { this.cmbuser.SelectedValue = "0"; } FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; buttj_Click(sender, e); }
/// <summary> /// 医生站传输 构造函数 /// </summary> /// <param name="menuTag"></param> /// <param name="chineseName">窗体text值</param> /// <param name="mdiParent"></param> /// <param name="_user">当前用户</param> /// <param name="yylx">预约类型</param> /// <param name="deptid">科室id</param> /// <param name="ysid">医生id</param> public Frm_OrderRegist(MenuTag menuTag, string chineseName, Form mdiParent, User _user, Mz_YYgh.YYgh_Sort yylx, int deptid, string cardno, string klx, RelationalDatabase db) { InitializeComponent(); if (db != null) { InstanceForm.BDatabase = db; } _menuTag = menuTag; _chineseName = chineseName; this.Text = _chineseName; _currentuser = _user; _CurrentYylx = yylx; _currentdeptid = deptid; cmb_sxw.SelectedIndex = 0; this.cmbghjb.Enabled = false; this.Lab_Doctor.Enable = false; this.Lab_Dept.Enable = false; this.cmb_sxw.Enabled = false; _orderMeans = new Order_Web(_cfg3059); _CurrentYylx = yylx; //添加卡类型 FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); if (!string.IsNullOrEmpty(cardno)) { this.cmbklx.SelectedValue = klx; this.txtkh.Text = cardno; this.txtkh.Enabled = false; this.cmbklx.Enabled = false; SetControls(cardno); } }
private void 用药级别审核_Load(object sender, EventArgs e) { Tbys = Fun.GetGhys(0, InstanceForm.BDatabase); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); butcx_Click(null, null); }
private void Frmxjsrtj_Load(object sender, EventArgs e) { FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; if (_menuTag.Function_Name == "Fun_ts_mz_tjbb_jk_pos") { label2.Text = "缴款日期"; } else { label2.Text = "收费日期"; } }
private void Frmzlktj_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); }
public Frmxghtdw(Guid ghxxid) { InitializeComponent(); FunAddComboBox.AddHtdwLx(false, cmbhtdwlx, InstanceForm.BDatabase); _ghxxid = ghxxid; string ssql = "select * from vi_mz_ghxx where ghxxid='" + ghxxid + "'"; DataTable tb = InstanceForm.BDatabase.GetDataTable(ssql); if (tb.Rows.Count == 0) { butok.Enabled = false; return; } cmbhtdwlx.SelectedValue = Convertor.IsNull(tb.Rows[0]["htdwlx"].ToString(), "0"); txthtdwmc.Tag = Convertor.IsNull(tb.Rows[0]["htdwid"].ToString(), "0"); txthtdwmc.Text = Convertor.IsNull(InstanceForm.BDatabase.GetDataResult("select dwmc from jc_htdw where id=" + Convertor.IsNull(tb.Rows[0]["htdwid"].ToString(), "0") + " "), ""); old_htdwlx = Convertor.IsNull(tb.Rows[0]["htdwlx"].ToString(), "0") == "0" ? "" : Convertor.IsNull(cmbhtdwlx.Text, ""); old_htdwmc = Convertor.IsNull(txthtdwmc.Text, ""); if (tb.Rows[0]["bqxghbz"].ToString() == "1") { butok.Enabled = false; return; groupBox1.Text = "修改 病人已退签不能修改"; } }
/// <summary> /// 初始化界面相关数据 /// </summary> private void FrmInit() { try { //添加卡类型 Modify By zp 2014-11-17 FunAddComboBox.AddKlx(true, 0, cmbklx, InstanceForm.BDatabase); //默认日期为一周 DateTime _NowDat = DateManager.ServerDateTimeByDBType(FrmMdiMain.Database); this.Dtp_Begin.Value = Convert.ToDateTime(_NowDat.ToString("yyyy-MM-dd 00:00:00")); this.Dtp_End.Value = Convert.ToDateTime(_NowDat.ToString("yyyy-MM-dd 23:59:59"));; this.Text = _chineseName; this.Rdo_Zt_Wzf.Checked = true; BindYYLB(); BindDoctor(); BindDept(); //默认选择当前科室和当前医生 SelectDoctor(InstanceForm.BCurrentUser.EmployeeId); SelectDept(InstanceForm.BCurrentDept.DeptId); this.MaximizeBox = true; Screen[] _screen = Screen.AllScreens; int width = _screen[0].WorkingArea.Width; int height = _screen[0].WorkingArea.Height; this.Width = width; this.Height = height; this.WindowState = FormWindowState.Maximized; this.Dgv_OrderInfo.ColumnHeadersHeight = 30; } catch (Exception ea) { MessageBox.Show("初始化窗口数据出现异常!原因:" + ea.Message, "提示"); } }
private void Frmsk_jktj_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); dtpqrrq1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtpqrrq2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); dtpqrrq1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtpqrrq2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } cmbFG.Items.Add("列宽适应网格内容"); cmbFG.Items.Add("列宽仅适应有数据的区域"); cmbFG.SelectedIndex = 0; FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; depttb = InstanceForm.BDatabase.GetDataTable("select DEPT_ID,NAME,PY_CODE,WB_CODE from JC_DEPT_PROPERTY where LAYER=3 and deleted=0"); }
private void 门诊预交金收支情况统计_Load(object sender, EventArgs e) { dataGridViewX1.ColumnDeep = 2; this.dataGridViewX1.AutoGenerateColumns = false; dtpjsrq1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtpjsrq2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddOperator(true, comboBox1, InstanceForm.BDatabase); }
private void Frmghdj_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; FunAddComboBox.AddBrlx(true, 0, cmbbrlx, InstanceForm.BDatabase); FunAddComboBox.AddGhlx(true, 0, cmbghlx, InstanceForm.BDatabase); FunAddComboBox.AddKlx(true, 0, cmbklx, InstanceForm.BDatabase); FunAddComboBox.AddGhjb(true, 0, cmbghjb, InstanceForm.BDatabase); FunAddComboBox.AddOperator(true, cmbsky, InstanceForm.BDatabase); Tbks = Fun.GetGhks(false, InstanceForm.BDatabase); Tbys = Fun.GetGhys(0, InstanceForm.BDatabase); #region 窗口输入项的控制 //ghlb_ini = ApiFunction.GetIniString("挂号屏蔽项", "诊别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //klx_ini = ApiFunction.GetIniString("挂号屏蔽项", "卡类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //kh_ini = ApiFunction.GetIniString("挂号屏蔽项", "卡号", Constant.ApplicationDirectory + "//ClientWindow.ini"); //xm_ini = ApiFunction.GetIniString("挂号屏蔽项", "姓名", Constant.ApplicationDirectory + "//ClientWindow.ini"); //xb_ini = ApiFunction.GetIniString("挂号屏蔽项", "性别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //nl_ini = ApiFunction.GetIniString("挂号屏蔽项", "年龄", Constant.ApplicationDirectory + "//ClientWindow.ini"); //lxfs_ini = ApiFunction.GetIniString("挂号屏蔽项", "联系方式", Constant.ApplicationDirectory + "//ClientWindow.ini"); //jtdz_ini = ApiFunction.GetIniString("挂号屏蔽项", "家庭地址", Constant.ApplicationDirectory + "//ClientWindow.ini"); //brlx_ini = ApiFunction.GetIniString("挂号屏蔽项", "病人类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghks_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号科室", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghjb_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号级别", Constant.ApplicationDirectory + "//ClientWindow.ini"); //ghys_ini = ApiFunction.GetIniString("挂号屏蔽项", "挂号医生", Constant.ApplicationDirectory + "//ClientWindow.ini"); //yblx_ini = ApiFunction.GetIniString("挂号屏蔽项", "医保类型", Constant.ApplicationDirectory + "//ClientWindow.ini"); //readcard_ini = ApiFunction.GetIniString("挂号屏蔽项", "读卡", Constant.ApplicationDirectory + "//ClientWindow.ini"); //blb_ini = ApiFunction.GetIniString("挂号屏蔽项", "病历本", Constant.ApplicationDirectory + "//ClientWindow.ini"); //sfplx_ini = ApiFunction.GetIniString("划价收费", "挂号使用收费票", Constant.ApplicationDirectory + "//ClientWindow.ini"); //syk_ini = ApiFunction.GetIniString("挂号收费", "挂号时必须使用卡", Constant.ApplicationDirectory + "//ClientWindow.ini"); //Bview = ApiFunction.GetIniString("划价收费", "发票预览", Constant.ApplicationDirectory + "//ClientWindow.ini"); //Fplx = sfplx_ini == "true" ? 1 : 0; //cmbghlx.Enabled = ghlb_ini == "true" ? false : true; //cmbklx.Enabled = klx_ini == "true" ? false : true; //txtkh.Enabled = kh_ini == "true" ? false : true; //txtxm.Enabled = xm_ini == "true" ? false : true; //txtgrlxfs.Enabled = lxfs_ini == "true" ? false : true; //txtjtdz.Enabled = jtdz_ini == "true" ? false : true; //cmbbrlx.Enabled = brlx_ini == "true" ? false : true; //txtks.Enabled = ghks_ini == "true" ? false : true; //cmbghjb.Enabled = ghjb_ini == "true" ? false : true; //txtys.Enabled = ghys_ini == "true" ? false : true; #endregion //自动读射频卡 string sbxh = ApiFunction.GetIniString("医院健康卡", "设备型号", Constant.ApplicationDirectory + "//ClientWindow.ini"); ts_Read_hospitalCard.Icall ReadCard = ts_Read_hospitalCard.CardFactory.NewCall(sbxh); if (ReadCard != null) { ReadCard.AutoReadCard(_menuTag.Function_Name, cmbklx, txtkh); } }
private void FrmMzSrRbbKs_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; dtpks.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtpjs.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; }
private void FrmMzysXmtj_Load(object sender, EventArgs e) { FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; Tbks = Fun.GetGhks(false, InstanceForm.BDatabase); Tbys = Fun.GetGhys(0, InstanceForm.BDatabase); }
public FrmBaseReportHtdw(MenuTag menuTag, string chineseName, Form mdiParent, string reportFilename) { InitializeComponent(); FunAddComboBox.AddHtdwLx(false, cmbdwlx, InstanceForm.BDatabase); cmbdwlx.SelectedValue = 1; base.InitForm(menuTag, chineseName, mdiParent, reportFilename); }
public FrmCardChange_FL(MenuTag menuTag, string chineseName, Form mdiParent) { InitializeComponent(); FunAddComboBox.AddKlx(false, 0, cmb_yklx, InstanceForm.BDatabase); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); _menuTag = menuTag; _chineseName = chineseName; _mdiParent = mdiParent; this.Text = _chineseName; }
public FrmBaseReportLsh(MenuTag menuTag, string chineseName, Form mdiParent, string reportFilename) { InitializeComponent(); base.InitForm(menuTag, chineseName, mdiParent, reportFilename); FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); }
private void Frmxjsrtj_Load(object sender, EventArgs e) { FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; FunAddComboBox.AddHtdwLx(true, cmbhtdwlx, InstanceForm.BDatabase); butprint.Visible = true; }
// 加载 private void Frmjzlscx_Load(object sender, EventArgs e) { // 科室绑定 FunAddComboBox.AddDept(true, 1, cmbksmc, InstanceForm.BDatabase); // 收费员绑定 FunAddComboBox.AddOperator(true, cmbsfy, InstanceForm.BDatabase); // 医保类型绑定 FunAddComboBox.AddYblx(true, 0, cmbyblx, InstanceForm.BDatabase); cmbksmc.SelectedIndex = 0; cmbsfy.SelectedIndex = 0; cmbyblx.SelectedIndex = 0; }
public Frmbrkcz(MenuTag menuTag, string chineseName, Form mdiParent) { InitializeComponent(); _menuTag = menuTag; _chineseName = chineseName; _mdiParent = mdiParent; this.Text = _chineseName; this.WindowState = FormWindowState.Maximized; FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); }
private void Frmmz_syffjl_Load(object sender, EventArgs e) { panel4.Visible = false; dataGridView1.AllowUserToAddRows = false; dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.ReadOnly = true; this.dataGridView1.AutoGenerateColumns = false; dataGridView2.AllowUserToAddRows = false; dataGridView2.AllowUserToDeleteRows = false; this.dataGridView2.ReadOnly = true; this.dataGridView2.AutoGenerateColumns = false; FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); }
private void Frmcfsh_Load(object sender, EventArgs e) { AddTree(); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); //自动读射频卡 string sbxh = ApiFunction.GetIniString("医院健康卡", "设备型号", Constant.ApplicationDirectory + "//ClientWindow.ini"); ts_Read_hospitalCard.Icall ReadCard = ts_Read_hospitalCard.CardFactory.NewCall(sbxh); if (ReadCard != null) { ReadCard.AutoReadCard(_menuTag.Function_Name, cmbklx, txtkh); } }
/// <summary> ///构造函数 /// </summary> /// <param name="menuTag"></param> /// <param name="chineseName"></param> /// <param name="mdiParent"></param> /// <param name="_user"></param> /// <param name="yylx">预约类型</param> public Frm_OrderRegist(MenuTag menuTag, string chineseName, Form mdiParent, User _user, Mz_YYgh.YYgh_Sort yylx) { InitializeComponent(); _menuTag = menuTag; _chineseName = chineseName; _mdiParent = mdiParent; this.Text = _chineseName; _currentuser = _user; _CurrentYylx = yylx; cmb_sxw.SelectedIndex = 0; _orderMeans = new Order_Web(_cfg3059); //添加卡类型 FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); }
private void Frmcfdy_Load(object sender, EventArgs e) { try { this.tbxbr.Focus(); cfmxTable = this.CreateDataSouce(); FunAddComboBox.AddKlx(false, 0, cmbklx, InstanceForm.BDatabase); cbglydy.Checked = true; } catch (Exception err) { MessageBox.Show(err.Message.ToString(), "提示"); } }
void FrmMZYSJZLTJ_Load(object sender, EventArgs e) { dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddJgbm(false, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; cmbjgbm.Enabled = false; FunAddComboBox.AddGhjb(true, 0, cmbghjb, InstanceForm.BDatabase); Tbks = Fun.GetGhks(false, InstanceForm.BDatabase); Tbys = Fun.GetGhys(0, InstanceForm.BDatabase); cmbpx.SelectedIndex = 0; }
void FrmSfygzltj_Load(object sender, EventArgs e) { FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); if (cmbuser.SelectedValue == null) { cmbuser.SelectedValue = "0"; } FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); }
private void Frmyjjjk_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; dtpjsrq1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtpjsrq2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); FunAddComboBox.AddOperator(true, cmbsfy, InstanceForm.BDatabase); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtpjsrq1.Value = Convert.ToDateTime(dtpjsrq1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtpjsrq2.Value = Convert.ToDateTime(dtpjsrq2.Value.ToShortDateString() + " " + s[1]); } }
private void Frmsk_jktj_Load(object sender, EventArgs e) { //FunAddComboBox.AddOperator(true, cmbuser); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } //cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); //if (cmbuser.SelectedValue == null) cmbuser.SelectedValue = "0"; //if (cmbuser.SelectedValue.ToString() != InstanceForm.BCurrentUser.EmployeeId.ToString()) // this.cmbuser.SelectedValue = "0"; cmbFG.Items.Add("列宽适应网格内容"); cmbFG.Items.Add("列宽仅适应有数据的区域"); cmbFG.SelectedIndex = 0; FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); FunAddComboBox.AddDept(true, 1, cmbdept, InstanceForm.BDatabase); //Add By Zj 2012-08-01 cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; FullCmbSfDept(); //add by zp 2013-05-24 //其他统计项目 deptb = InstanceForm.BDatabase.GetDataTable("SELECT CLASS_CODE AS ID,NAME FROM JC_DM_CLASS WHERE CLASS_CODE LIKE 'TJDXM%'"); if (deptb == null) { MessageBox.Show("错误,未能取得其他统计项目信息!", "提示"); } DataRow rowQt = deptb.NewRow(); rowQt["ID"] = -1; rowQt["NAME"] = ""; cmbQt.DataSource = deptb; cmbQt.DisplayMember = "NAME"; cmbQt.ValueMember = "ID"; cmbQt.SelectedValue = -1; rdJg.Checked = true; }
private void Frmsk_jktj_Load(object sender, EventArgs e) { FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase); this.WindowState = FormWindowState.Maximized; dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00"); dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59"); SystemCfg cfg1054 = new SystemCfg(1054); string[] s = cfg1054.Config.ToString().Split(','); if (s.Length == 2) { dtp1.Value = Convert.ToDateTime(dtp1.Value.AddDays(-1).ToShortDateString() + " " + s[0]); dtp2.Value = Convert.ToDateTime(dtp2.Value.ToShortDateString() + " " + s[1]); } cmbuser.SelectedValue = InstanceForm.BCurrentUser.EmployeeId.ToString(); if (cmbuser.SelectedValue == null) { cmbuser.SelectedValue = "0"; } if (cmbuser.SelectedValue.ToString() != InstanceForm.BCurrentUser.EmployeeId.ToString()) { this.cmbuser.SelectedValue = "0"; } if (_menuTag.Function_Name == "Fun_ts_mz_tjbb_mzjk_xmsrtj") { lbluser.Text = "缴款员"; lblrq.Text = "缴款日期"; cmbyblx.Visible = false; label4.Visible = false; } FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase); cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm; string ssql = "select '全部' name,'-1' code union all select '自费' name,'0' code union all select name,id from jc_yblx where delete_bit=0"; DataTable tb = InstanceForm.BDatabase.GetDataTable(ssql); cmbyblx.ValueMember = "CODE"; cmbyblx.DisplayMember = "NAME"; cmbyblx.DataSource = tb; }