예제 #1
0
        /// <summary>
        /// 确认采血事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (gdCollectBlood.SelectedRowIndexArray.Length == 0)
            {
                return;
            }
            if (dropStatus.SelectedValue == "-1")
            {
                MessageBoxShow("请选择[未采血]状态再确认", MessageBoxIcon.Information);
                return;
            }
            if (dropStatus.SelectedValue == "10")
            {
                MessageBoxShow("已采血,不可以再次确认采血", MessageBoxIcon.Information);
                return;
            }
            foreach (int row in gdCollectBlood.SelectedRowIndexArray)
            {
                Hashtable ht       = new Hashtable();
                UserInfo  userInfo = (UserInfo)Session["UserInfo"];
                ht.Add("OrdersBarcodeIds", gdCollectBlood.DataKeys[row][0].ToString());
                ht.Add("UserName", userInfo.userId);
                orderbarcodeService.EnSureCollectBlood(ht);


                orderbarcodeService.AddOperationLog(gdCollectBlood.DataKeys[row][2].ToString(),
                                                    gdCollectBlood.DataKeys[row][1].ToString(), "采血确认", "确认标本已采血", "修改留痕", "");
            }
            gdCollectBlood.SelectedRowIndexArray = null;
            BindGrid();
            MessageBoxShow("确认成功", MessageBoxIcon.Information);
        }
예제 #2
0
        /// <summary>
        /// 确认上传事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (gdUploadToLIS.SelectedRowIndexArray.Length == 0)
            {
                return;
            }
            StringBuilder sb = new StringBuilder();

            foreach (int row in gdUploadToLIS.SelectedRowIndexArray)
            {
                sb.Append(gdUploadToLIS.DataKeys[row][0].ToString());
                sb.Append(",");
            }
            string    orderNums = sb.ToString();
            Hashtable ht        = new Hashtable();

            ht.Add("Transed", "0");
            ht.Add("OrderNum", orderNums.TrimEnd(','));
            bool affectRow = orderbarcodeService.UpdateSelectedTransedToLIS(ht);

            if (affectRow)
            {
                //添加操作日志
                foreach (int row in gdUploadToLIS.SelectedRowIndexArray)
                {
                    orderbarcodeService.AddOperationLog(gdUploadToLIS.DataKeys[row][0].ToString(),
                                                        "", "重新上传到LIS系统", "修改上传LIS系统失败的记录状态为0,提供重新扫描上传。", "修改留痕", " ");
                }
                gdUploadToLIS.SelectedRowIndexArray = null;
                BindGrid();
                MessageBoxShow("修改成功");
            }
        }
예제 #3
0
        /// <summary>
        /// 确认标本已接受事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (gdOutWorkerAccept.SelectedRowIndexArray.Length == 0)
            {
                return;
            }
            if (dropStatus.SelectedValue == "-1")
            {
                MessageBoxShow("请选择[未接收]状态再扫描确认", MessageBoxIcon.Information);
                return;
            }
            foreach (int row in gdOutWorkerAccept.SelectedRowIndexArray)
            {
                Hashtable ht = new Hashtable();
                ht.Add("OrdersBarcodeIds", gdOutWorkerAccept.DataKeys[row][0].ToString());
                UserInfo userInfo = (UserInfo)Session["UserInfo"];
                ht.Add("UserName", userInfo.userId);
                orderbarcodeService.EnsureAccept(ht);

                orderbarcodeService.AddOperationLog(gdOutWorkerAccept.DataKeys[row][2].ToString(),
                                                    gdOutWorkerAccept.DataKeys[row][1].ToString(), "外勤标本接收", "确认标本已接收", "修改留痕", " ");
            }
            gdOutWorkerAccept.SelectedRowIndexArray = null;
            BindGrid();
            MessageBoxShow("确认成功");
        }
예제 #4
0
 //记录日志
 private static void JournalLog(string ordernum, string barcodes, string str)
 {
     //日志
     string[] arrorder = ordernum.Split(',');
     for (int i = 0; i < arrorder.Length; i++)
     {
         barcodeservice.AddOperationLog(ordernum, barcodes, "条码补打", "批量" + str + "[" + barcodes + "]", "节点信息", "批量" + str);
     }
 }