public void updatedeviceqw()
 {
     try
     {
         string    id        = yuweiId;
         string    decice_id = this.hidder1.Value.ToString();
         string    kssj      = DateTime.Parse(lrsj).ToString("yyyy-MM-dd HH:mm:ss");
         string    jssj      = DateTime.Parse(shsj).ToString("yyyy-MM-dd HH:mm:ss");
         Hashtable hs        = new Hashtable();
         hs.Add("id", id);
         hs.Add("openration_people", this.txt_upde_lrpeople.Text.ToString());
         hs.Add("openration_time", kssj);
         hs.Add("openration_event", this.txt_upde_lrshuoming.Text.ToString());
         hs.Add("openration_type", this.com_upte_lrtype.Value);
         hs.Add("openration_unit", this.com_upte_lrdanwei.Value);
         hs.Add("openration_auditor", this.txt_upde_shpeople.Text.ToString());
         hs.Add("openration_opinion", this.txt_upde_shyijian.Text.ToString());
         hs.Add("openration_revtime", jssj);
         if (deviceManager.uptateOperation(hs) > 0)
         {
             StoreDeviceManager.DataSource = (DataTable)Session["datatable"];
             StoreDeviceManager.DataBind();
             DataTable da = deviceManager.GetOperation(" 1=1 AND  device_id='" + decice_id + "' ");
             SroPenation.DataSource = da;
             SroPenation.DataBind();
             Window3.Hide();
             string ywfss  = com_upte_lrtype.SelectedItem.Text;
             string sqdws  = com_upte_lrdanwei.SelectedItem.Text;
             string sqrs   = txt_upde_lrpeople.Text;
             string lrsjs  = start1time;
             string lrsms  = txt_upde_lrshuoming.Text;
             string shrs   = txt_upde_shpeople.Text;
             string shsjs  = end1time;
             string shyjs  = txt_upde_shyijian.Text;
             string lbname = "";
             lbname += Bll.Common.AssembleRunLog(ywfs, ywfss, GetLangStr("DeviceOperation58", "运维方式"), "1");
             lbname += Bll.Common.AssembleRunLog(sqdw, sqdws, GetLangStr("DeviceOperation28", "申请单位"), "1");
             lbname += Bll.Common.AssembleRunLog(sqr, sqrs, GetLangStr("DeviceOperation27", "申请人"), "1");
             lbname += Bll.Common.AssembleRunLog(lrsj, lrsjs, GetLangStr("DeviceOperation29", "录入时间"), "1");
             lbname += Bll.Common.AssembleRunLog(lrsm, lrsms, GetLangStr("DeviceOperation39", "录入说明"), "1");
             lbname += Bll.Common.AssembleRunLog(shr, shrs, GetLangStr("DeviceOperation40", "审核人"), "1");
             lbname += Bll.Common.AssembleRunLog(shsj, shsjs, GetLangStr("DeviceOperation41", "审核时间"), "1");
             lbname += Bll.Common.AssembleRunLog(shyj, shyjs, GetLangStr("DeviceOperation42", "审核意见"), "1");
             DataRow[] dr   = dtname.Select("col0='" + sbid + "'");
             string    sbne = dr[0]["col2"].ToString();
             logManager.InsertLogRunning(uName, GetLangStr("DeviceOperation67", "修改;[") + sbne + "]" + lbname, nowIp, "2");
             Notice(GetLangStr("DeviceOperation70", "信息提示"), GetLangStr("DeviceOperation75", "修改成功"));
         }
         qingkongupdate();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("DeviceOperation.aspx-updatedeviceqw", ex.Message + ";" + ex.StackTrace, "updatedeviceqw has an exception");
     }
 }
        public void updatedevice(string code)
        {
            try
            {
                string id        = code;
                string decice_id = this.hidder1.Value.ToString();
                string kssj      = DateTime.Parse(starttime).ToString("yyyy-MM-dd HH:mm:ss");
                string jssj      = DateTime.Parse(endtime).ToString("yyyy-MM-dd HH:mm:ss");
                //string lurutime = date_upde_lrdate.SelectedDate.ToString("yyyy-MM-dd") + " " + this.time_upde_lrtime.Text.ToString();
                //string shtime = date_upde_shdate.SelectedDate.ToString("yyyy-MM-dd") + " " + this.time_upde_shtime.Text.ToString();
                Hashtable hs = new Hashtable();
                hs.Add("id", id);

                hs.Add("openration_people", this.txt_upde_lrpeople.Text.ToString());
                hs.Add("openration_time", kssj);
                hs.Add("openration_event", this.txt_upde_lrshuoming.Text.ToString());
                hs.Add("openration_type", this.com_upte_lrtype.Value);
                hs.Add("openration_unit", this.com_upte_lrdanwei.Value);
                hs.Add("openration_auditor", this.txt_upde_shpeople.Text.ToString());
                hs.Add("openration_opinion", this.txt_upde_shyijian.Text.ToString());
                hs.Add("openration_revtime", jssj);
                if (deviceManager.uptateOperation(hs) > 0)
                {
                    DataTable da = deviceManager.GetOperation(" 1=1 AND  device_id='" + decice_id + "' ");
                    SroPenation.DataSource = da;
                    SroPenation.DataBind();
                    Window3.Hide();


                    Notice(GetLangStr("DeviceOperation70", "信息提示"), GetLangStr("DeviceOperation75", "修改成功"));
                    DataTable dt = deviceManager.GetOperation(" 1=1 AND  device_id='shebei" + tyeid + "' ");
                    SroPenation.DataSource = dt;
                }
                qingkongupdate();
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("DeviceOperation.aspx-updatedevice", ex.Message + ";" + ex.StackTrace, "updatedevice has an exception");
            }
        }