protected void InitPage(DataInfo info) { Init_Company(1); CAR_Content.AutoConfigure = CuteEditor.AutoConfigure.None; try { Required_Date.Text = info.required_date.ToString(); Serial_No.Text = info.serial_no; Happen_Date.Text = info.happen_date.ToString(); From_Comp.Items.FindByText(info.from_comp).Selected = true; CAR_Comp.Items.FindByText(info.car_comp).Selected = true; Issued_User.Text = info.issued_user; Issued_APP.Text = info.issued_app; Received_User.Text = info.received_user; CAR_Content.Text = Server.HtmlDecode(info.car_content); CAR_Content.AutoConfigure = CuteEditor.AutoConfigure.None; CAR_Content.ActiveTab = CuteEditor.TabType.View; CAR_Content.ShowBottomBar = false; Interim_Action.Text = Server.HtmlDecode(info.interim_action); IA_Date.Text = info.ia_date.ToString(); Info_Content.Text = Server.HtmlDecode(info.info_content); Info_Date.Text = info.Info_Date.ToString(); Corrective_Action.Text = Server.HtmlDecode(info.corrective_action); CA_Date.Text = info.ca_date.ToString(); IPCA.Text = Server.HtmlDecode(info.ipca); IPCA_Date.Text = info.ipca_date.ToString(); ATPR.Text = Server.HtmlDecode(info.atpr); ATPR_Date.Text = info.ipca_date.ToString(); CONF_Content.Text = Server.HtmlDecode(info.conf_content); if ((int)info.sop_status == 1) { SOP_Status_ck_2.Checked = true; SOP_Name.Text = info.sop_name; } else { SOP_Status_ck_1.Checked = true; SOP_Name.Text = ""; } Z_APP.Text = info.z_app; Z_User.Text = info.z_user; SOP_Date.Text = info.sop_date.ToString(); CONF_User.Text = info.conf_user; CONF_User_Date.Text = info.conf_user_date.ToString(); CONF_APP.Text = info.conf_app; CONF_APP_Date.Text = info.conf_app_date.ToString(); } catch (Exception ex) { } #region 文件路径 string id = System.Web.HttpContext.Current.User.Identity.Name.Replace("FOUNDERPCB\\", ""); id = id + @"/" + System.DateTime.Now.Date.ToShortDateString(); //Response.Write("id" + id); //建立用户目录 string path = Server.MapPath(@"uploads/" + id); if (!System.IO.Directory.Exists(path)) { System.IO.Directory.CreateDirectory(path);//在指定路径下新建一个文件夹 } CAR_Content.SetSecurityImageGalleryPath(path); CAR_Content.SetSecurityImageGalleryPath(path); CAR_Content.SetSecurityMediaGalleryPath(path); CAR_Content.SetSecurityFlashGalleryPath(path); CAR_Content.SetSecurityFilesGalleryPath(path); Interim_Action.SetSecurityImageGalleryPath(path); Interim_Action.SetSecurityImageGalleryPath(path); Interim_Action.SetSecurityMediaGalleryPath(path); Interim_Action.SetSecurityFlashGalleryPath(path); Interim_Action.SetSecurityFilesGalleryPath(path); Info_Content.SetSecurityImageGalleryPath(path); Info_Content.SetSecurityImageGalleryPath(path); Info_Content.SetSecurityMediaGalleryPath(path); Info_Content.SetSecurityFlashGalleryPath(path); Info_Content.SetSecurityFilesGalleryPath(path); Corrective_Action.SetSecurityImageGalleryPath(path); Corrective_Action.SetSecurityImageGalleryPath(path); Corrective_Action.SetSecurityMediaGalleryPath(path); Corrective_Action.SetSecurityFlashGalleryPath(path); Corrective_Action.SetSecurityFilesGalleryPath(path); IPCA.SetSecurityImageGalleryPath(path); IPCA.SetSecurityImageGalleryPath(path); IPCA.SetSecurityMediaGalleryPath(path); IPCA.SetSecurityFlashGalleryPath(path); IPCA.SetSecurityFilesGalleryPath(path); ATPR.SetSecurityImageGalleryPath(path); ATPR.SetSecurityImageGalleryPath(path); ATPR.SetSecurityMediaGalleryPath(path); ATPR.SetSecurityFlashGalleryPath(path); ATPR.SetSecurityFilesGalleryPath(path); CONF_Content.SetSecurityImageGalleryPath(path); CONF_Content.SetSecurityImageGalleryPath(path); CONF_Content.SetSecurityMediaGalleryPath(path); CONF_Content.SetSecurityFlashGalleryPath(path); CONF_Content.SetSecurityFilesGalleryPath(path); #endregion }
protected void InitPage(DataInfo info) { Init_Company(1); try { happen_date.Text = info.happen_date.ToString(); Issued_User.Text = info.issued_user; Required_Date.Text = info.required_date.ToString(); CAR_Part_Num.Text = info.car_part_num; From_Comp.Items.FindByText(info.from_comp).Selected = true; CAR_Comp.Items.FindByText(info.car_comp).Selected = true; if (info.hsf_happen_type == "1") { HSF_Happen_Type_1.Checked = true; } else if (info.hsf_happen_type == "2") { HSF_Happen_Type_2.Checked = true; } else if (info.hsf_happen_type == "3") { HSF_Happen_Type_3.Checked = true; } else if (info.hsf_happen_type == "4") { HSF_Happen_Type_4.Checked = true; } else if (info.hsf_happen_type == "5") { HSF_Happen_Type_5.Checked = true; } Serial_No.Text = info.serial_no; Issued_APP.Text = info.issued_app; Received_User.Text = info.received_user; CAR_Content.Text = Server.HtmlDecode(info.car_content); CAR_Content.AutoConfigure = CuteEditor.AutoConfigure.None; CAR_Content.ActiveTab = CuteEditor.TabType.View; CAR_Content.ShowBottomBar = false; LOT.Text = info.lot; batch.Text = info.batch.ToString(); badness_Num.Text = info.badness_num.ToString(); ReWork.Text = info.rework.ToString(); Reject.Text = info.reject.ToString(); NoWork.Text = info.nowork.ToString(); if ((int)info.info_type_1 == 1) { Info_Type_1.Checked = true; } if ((int)info.info_type_2 == 1) { Info_Type_2.Checked = true; } if ((int)info.info_type_3 == 1) { Info_Type_3.Checked = true; } if ((int)info.info_type_4 == 1) { Info_Type_4.Checked = true; } if ((int)info.info_type_5 == 1) { Info_Type_5.Checked = true; } Info_Content.Text = Server.HtmlDecode(info.info_content); Interim_Action.Text = Server.HtmlDecode(info.interim_action); IA_APP.Text = info.IA_APP; IA_User.Text = info.IA_USER; IA_Date.Text = info.ia_date.ToString(); IPCA.Text = Server.HtmlDecode(info.ipca); IPCA_APP.Text = info.IPCA_APP; IPCA_User.Text = info.IPCA_USER; IPCA_Date.Text = info.ipca_date.ToString(); Levels.Text = info.levels; if ((int)info.sop_status == 1) { SOP_Status_2.Checked = true; SOP_Name.Text = info.sop_name; } else { SOP_Status_1.Checked = true; } SOP_Content.Text = info.sop_content; SOP_Date.Text = info.sop_date.ToString(); Together_Write.Text = info.together_write; if ((int)info.conf_status == 1) { CONF_Status_1.Checked = true; CONF_Status_2.Checked = false; CONF_Status_3.Checked = false; } else if ((int)info.conf_status == 2) { CONF_Status_1.Checked = false; CONF_Status_2.Checked = true; CONF_Status_3.Checked = false; } else if ((int)info.conf_status == 3) { CONF_Status_1.Checked = false; CONF_Status_2.Checked = false; CONF_Status_3.Checked = true; } CONF_Content.Text = Server.HtmlDecode(info.conf_content); } catch { } #region 文件路径 string id = System.Web.HttpContext.Current.User.Identity.Name.Replace("FOUNDERPCB\\", ""); id = id + @"/" + System.DateTime.Now.Date.ToShortDateString(); //Response.Write("id" + id); //建立用户目录 string path = Server.MapPath(@"uploads/" + id); if (!System.IO.Directory.Exists(path)) { System.IO.Directory.CreateDirectory(path);//在指定路径下新建一个文件夹 } CAR_Content.SetSecurityImageGalleryPath(path); CAR_Content.SetSecurityImageGalleryPath(path); CAR_Content.SetSecurityMediaGalleryPath(path); CAR_Content.SetSecurityFlashGalleryPath(path); CAR_Content.SetSecurityFilesGalleryPath(path); Interim_Action.SetSecurityImageGalleryPath(path); Interim_Action.SetSecurityImageGalleryPath(path); Interim_Action.SetSecurityMediaGalleryPath(path); Interim_Action.SetSecurityFlashGalleryPath(path); Interim_Action.SetSecurityFilesGalleryPath(path); Info_Content.SetSecurityImageGalleryPath(path); Info_Content.SetSecurityImageGalleryPath(path); Info_Content.SetSecurityMediaGalleryPath(path); Info_Content.SetSecurityFlashGalleryPath(path); Info_Content.SetSecurityFilesGalleryPath(path); IPCA.SetSecurityImageGalleryPath(path); IPCA.SetSecurityImageGalleryPath(path); IPCA.SetSecurityMediaGalleryPath(path); IPCA.SetSecurityFlashGalleryPath(path); IPCA.SetSecurityFilesGalleryPath(path); CONF_Content.SetSecurityImageGalleryPath(path); CONF_Content.SetSecurityImageGalleryPath(path); CONF_Content.SetSecurityMediaGalleryPath(path); CONF_Content.SetSecurityFlashGalleryPath(path); CONF_Content.SetSecurityFilesGalleryPath(path); #endregion }