Ejemplo n.º 1
0
        /// <summary>
        /// 保存数据,向Dictionary中添加数据
        /// </summary>
        public void AddDictionary()
        {
            string meg = @"病案号:" + LURecordNO.DisplayText + "\r\n" +
                         "第 " + txtTimes.Text + " 次入院" + "\r\n" +
                         "项目名称:" + LUProject.DisplayText + "\r\n" +
                         "第 " + txtPage.Text + " 页" + "\r\n" +
                         "附加页:" + txtSubPage.Text;

            if (Message.ShowQuery(meg, Message.Button.YesNo) == Message.Result.Yes)
            {
                int      index                   = images.SelectedIndex;
                string   fileName                = imageCollection1.Images.Keys[index].ToString();
                string[] s                       = fileName.Split('\\');
                string   old                     = s[s.Length - 1];
                string[] pictureNameArray        = s[s.Length - 1].Split('.');
                string   pictureForm             = pictureNameArray[pictureNameArray.Length - 1];
                Dictionary <string, string> dict = new Dictionary <string, string>();
                dict.Add("ID", LURecordNO.DisplayValue);
                dict.Add("PRO_ID", LUProject.DisplayValue);
                dict.Add("PRO_NAME", LUProject.DisplayText);
                dict.Add("PAGE_NO", txtPage.Text);
                dict.Add("SUBPAGE", txtSubPage.Text);
                dict.Add("PICTURE_NAME", SetImagePage() + "." + pictureForm);
                dict.Add("STORAGE_PATH", Sysdate.ToString("yyyyMMdd") + "\\" + LURecordNO.DisplayText); //存储路径
                dict.Add("LOGIC_PATH", CJia.Health.Tools.ConfigHelper.GetAppStrings("LOGIC_PATH"));     //逻辑存储路径
                dict.Add("FILE_NAME", fileName);
                dict.Add("PICTURE_OLD", old);
                imgList.Add(dict);
            }
        }
Ejemplo n.º 2
0
        public void ExePrintCancelPharmDetail(DataTable data)
        {
            string retreatStatus = string.Empty;

            if (this.rbSucceed.Checked)
            {
                retreatStatus = "Succeed";
            }
            else if (this.rbTurnDown.Checked)
            {
                retreatStatus = "TumDown";
            }
            else
            {
                retreatStatus = "No";
            }

            string dateStyle = "";

            if (this.rbPrintDate.Checked)
            {
                dateStyle = "Print";
            }
            else
            {
                dateStyle = "Check";
            }
            CancelPharmDetailReport report = new CancelPharmDetailReport();

            report.DataBind(dateStyle, data, cbIffield.Text, Sysdate.ToString(), dtStart.DateTime.ToShortDateString(), dtEnd.DateTime.ToShortDateString(), retreatStatus);
        }
Ejemplo n.º 3
0
        // 打印退药汇总单
        public void ExePrintCancelPharm(DataTable dtPrintPharm)
        {
            if (dtPrintPharm != null && dtPrintPharm.Rows.Count > 0)
            {
                dtPrintPharm.DefaultView.Sort = " PHARM_NAME";
                dtPrintPharm = dtPrintPharm.DefaultView.ToTable();
            }
            string retreatStatus = string.Empty;

            if (this.rbSucceed.Checked)
            {
                retreatStatus = "Succeed";
            }
            else if (this.rbTurnDown.Checked)
            {
                retreatStatus = "TumDown";
            }
            else
            {
                retreatStatus = "No";
            }
            string dateStyle = "";

            if (this.rbPrintDate.Checked)
            {
                dateStyle = "Print";
            }
            else
            {
                dateStyle = "Check";
            }
            CancelPharmReport report = new CancelPharmReport();

            report.DataBind(dateStyle, dtPrintPharm, cbIffield.Text, Sysdate.ToString(), dtStart.DateTime.ToShortDateString(), dtEnd.DateTime.ToShortDateString(), retreatStatus);
        }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["User"] != null)
         {
             DataTable userData = Session["User"] as DataTable;
             Label1.Text = userData.Rows[0]["USER_NAME"].ToString();
             Label2.Text = Sysdate.ToString();
         }
     }
 }
Ejemplo n.º 5
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     CJia.PIVAS.App.UI.LoginScanningView loginScanningView = new LoginScanningView(this.no);
     this.ShowAsWindow(this.no + "号操作台登录", loginScanningView);
     if (loginScanningView.succeed)
     {
         this.user               = loginScanningView.userData;
         this.lbName.Text        = this.user.Rows[0]["USER_NAME"].ToString();
         this.lbDate.Text        = Sysdate.ToString("yyyy/MM/dd HH:mm:ss");
         this.btnOut.Enabled     = true;
         this.btnLogin.Enabled   = false;
         this.cJiaPanel1.Visible = false;
     }
     else
     {
         this.user               = null;
         this.lbName.Text        = "";
         this.lbDate.Text        = "";
         this.btnOut.Enabled     = false;
         this.btnLogin.Enabled   = true;
         this.cJiaPanel1.Visible = true;
     }
 }