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);
        }
示例#2
0
        // 加载
        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;
        }
示例#3
0
        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;
        }