/// <summary>写日志
 ///
 /// </summary>
 /// <param name="ordernums"></param>
 /// <param name="str"></param>
 private static void JournalLog(string ordernums, string str)
 {
     string[] arrorder = ordernums.Split(',');
     for (int i = 0; i < arrorder.Length; i++)
     {
         mamagement.AddOperationLog(arrorder[i], "", "体检集中管理", "批量" + str + "[" + ordernums + "]", "节点信息", "批量" + str);
     }
 }
Beispiel #2
0
        ///保存
        protected void BtnSave_Click(object sender, EventArgs e)
        {
            string ordernums = hidOrderNums.Text;

            if (string.IsNullOrEmpty(ordernums))
            {
                MessageBoxShow("没有体检号,请关闭窗口后重新选择!"); return;
            }
            if (ordernums == string.Empty)
            {
                return;
            }
            Hashtable ht = new Hashtable();

            ht.Add("ordernum", ordernums);
            //分点
            int dropDictLab = Convert.ToInt32(DropDictLab.SelectedValue);

            if (dropDictLab != -1)
            {
                ht.Add("dictlabid", dropDictLab);
            }
            //单位
            int dropCustomer = Convert.ToInt32(DropCustomer.SelectedValue);

            if (dropCustomer != -1)
            {
                ht.Add("dictcustomerid", dropCustomer);
            }
            //省
            string province = dpProvince.SelectedValue;

            if (province != "-1")
            {
                ht.Add("province", province);
            }
            //市
            string city = dpCity.SelectedValue;

            if (city != "-1")
            {
                ht.Add("city", city);
            }
            //区县
            string county = dpCounty.SelectedValue;

            if (county != "-1")
            {
                ht.Add("county", county);
            }
            //部门机构
            if (!string.IsNullOrEmpty(txtSection.Text.Trim()))
            {
                ht.Add("section", txtSection.Text.Trim());
            }
            //营业区
            if (!string.IsNullOrEmpty(txtArea.Text.Trim()))
            {
                ht.Add("area", txtArea.Text.Trim());
            }
            //客户经理
            if (!string.IsNullOrEmpty(txtAccountManager.Text.Trim()))
            {
                ht.Add("accountmanager", txtAccountManager.Text.Trim());
            }
            //采样日期
            if (!string.IsNullOrEmpty(dtSampleDate.Text))
            {
                ht.Add("sampledate", dtSampleDate.Text);
            }
            //报告回寄信息
            if (!string.IsNullOrEmpty(txtAddress.Text.Trim()))
            {
                ht.Add("address", txtAddress.Text.Trim());
            }
            if (!string.IsNullOrEmpty(txtRecName.Text.Trim()))
            {
                ht.Add("recname", txtRecName.Text.Trim());
            }
            if (!string.IsNullOrEmpty(txtTelphone.Text.Trim()))
            {
                ht.Add("telphone", txtTelphone.Text.Trim());
            }
            if (ht.Count <= 1)
            {
                return;
            }

            if (mamagement.UpdateDictmemberidByOrderNum(ht))
            {
                MessageBoxShow("批量修改成功!");
                //刷记录
                BindData();
                //记录操作日志
                string[] arr = ordernums.Split(',');
                foreach (string str in arr)
                {
                    mamagement.AddOperationLog(str, "", "异常管理中心", "批量修改订单[" + str + "]", "修改留痕", "批量" + ordernums);
                }
            }
            else
            {
                MessageBoxShow("修改单位名称失败,请刷新页面重试!");
            }
        }