protected void ibtnInsert_Click(object sender, ImageClickEventArgs e) { Biz_BiasDatas bizBiasData = new Biz_BiasDatas(); if (bizBiasData.UpdateBiasPoint(this.ICOMP_ID, this.IEST_ID, this.IESTTERM_REF_ID, this.IESTTERM_SUB_ID, this.IESTTERM_STEP_ID, this.IBIAS_GRP_ID, ddlPointType.SelectedItem.Value, gUserInfo.Emp_Ref_ID)) { DoBindingData(); ltrScript.Text = JSHelper.GetAlertScript("성공적으로 점수를 적용하였습니다."); return; } ltrScript.Text = JSHelper.GetAlertScript("점수적용 실패!\\n" + bizBiasData.errMSG); }
protected void Button1_Click(object sender, EventArgs e) { string UserName = Request.Form["UserName"]; string Password = Request.Form["Password"]; string s = Request.Form["s"]; if (UserName.IsNullOrEmpty() || Password.IsNullOrEmpty()) { JSHelper.WriteScript("alert('用户名和密码不能为空!');history.back();"); Response.End(); } if (s.IsNullOrEmpty() || s.Length != 4) { JSHelper.WriteScript("alert('请正确填写验证码');history.back();"); Response.End(); } if (s.ToLower() != Request.Cookies["yzmcode"].Value.ToLower()) { JSHelper.WriteScript("alert('验证码有误');history.back();"); Response.End(); } SqlHelper helper = LocalSqlHelper.WH; string sql = "select id,LoginPwd,fullname,warehouse_id,RoleID from wareHouse_Admin where IsLock=0 and LoginName=@UserName"; helper.Params.Add("@UserName", UserName); DataTable dt = helper.ExecDataTable(sql); if (dt.Rows.Count != 1) { JSHelper.WriteScript("alert('管理员不存在');history.back();"); Response.End(); } string LoginPwd = Convert.ToString(dt.Rows[0]["LoginPwd"]); if (SinoHelper2.StringHelper.ASP16MD5(Password) != LoginPwd) { JSHelper.WriteScript("alert('密码有误');history.back();"); Response.End(); } Session["ManageUserId"] = Convert.ToString(dt.Rows[0]["id"]);; Session["LoginName"] = UserName; Session["TrueName"] = UserName;; Session["RoleID"] = Convert.ToString(dt.Rows[0]["RoleID"]); Session["warehouse_id"] = Convert.ToString(dt.Rows[0]["warehouse_id"]); Response.Cookies["userInfo"]["ManageUserId"] = Convert.ToString(dt.Rows[0]["id"]);; Response.Cookies["userInfo"]["LoginName"] = UserName; Response.Cookies["userInfo"]["TrueName"] = HttpUtility.UrlEncode(Convert.ToString(dt.Rows[0]["fullname"]));; Response.Cookies["userInfo"]["RoleID"] = Convert.ToString(dt.Rows[0]["RoleID"]); Response.Cookies["userInfo"]["warehouse_id"] = Convert.ToString(dt.Rows[0]["warehouse_id"]); JSHelper.WriteScript("location.href='Admin.Aspx'"); Response.End(); }
protected void ibnSearch_Click(object sender, ImageClickEventArgs e) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); if (estInfo.Q_Tgt_Pos_Biz_Use_YN.Equals("N")) { ltrScript.Text = JSHelper.GetAlertScript("현재 평가는 직무평가가 아닙니다."); return; } BindGrid(COMP_ID, EST_ID, TreeView1.SelectedValue); }
protected void txtPwd_Click(object sender, EventArgs e) { if (txtCheckPwd.Text != Session["random"].ToString()) { JSHelper.ShowAlert("验证码错误!"); } else { divPwd.Visible = false; divEditor.Visible = true; } }
protected void iBtnUpdate_Click(object sender, ImageClickEventArgs e) { if (!ImageExtensionCheck()) { ltrScript.Text = JSHelper.GetAlertScript("이미지 파일만 수정 가능합니다."); } else { this.UpdateViewData(); this.SetFormData(); } }
protected void Page_Load(object sender, EventArgs e) { try { string teacher = Session["AdminID"].ToString(); divTeacher.Visible = false; } catch { JSHelper.AlertThenRedirect("请先登录!", "Login.aspx"); } }
protected void BtnReset_Click(object sender, EventArgs e) { using (var db = new TeachingCenterEntities()) { string number = ltNumber.Text; Teacher te = db.Teacher.Single(a => a.number == number); te.password = PwdHelper.MD5("ouc" + number); db.SaveChanges(); //Server.Transfer("ResetPwd.aspx"); JSHelper.AlertThenRedirect("重置成功,重置密码为ouc+教师工号!", "ResetPwd.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { bizEstData = new Biz_Est_Data(); bizEstRefusal = new Biz_Est_Refusal(); COMP_ID = WebUtility.GetRequestByInt("COMP_ID", 1); EST_ID = WebUtility.GetConfig("EST_GRADE_ID"); //ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); //ESTTERM_SUB_ID = WebUtility.GetRequestByInt("ESTTERM_SUB_ID"); ESTTERM_STEP_ID = WebUtility.GetRequestByInt("ESTTERM_STEP_ID", 1); //TGT_DEPT_ID = WebUtility.GetRequestByInt("TGT_DEPT_ID"); TGT_EMP_ID = WebUtility.GetRequestByInt("TGT_EMP_ID", gUserInfo.Emp_Ref_ID); TGT_DEPT_ID = 0; EST_TGT_TYPE = WebUtility.GetRequest("EST_TGT_TYPE", "TGT"); // 웹 취약성 검사 때문에 처리 if (EST_TGT_TYPE.Equals("-0")) { ltrScript.Text = JSHelper.GetAlertScript("악성 요청을 거부합니다.", false); FormsAuthentication.SignOut(); string login_page_url = WebUtility.GetConfig("Login_Page_Url", "~/base/Login.aspx"); Response.Redirect(login_page_url); } if (!Page.IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindEstTerm(ddlEstTermRefID); DropDownListCommom.BindEstTermSubByYearYN(ddlEstTermSubID , WebUtility.GetIntByValueDropDownList(ddlCompID) , "N"); } ESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermRefID); ESTTERM_SUB_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermSubID); PageUtility.FindByValueDropDownList(ddlEstTermRefID, ESTTERM_REF_ID.ToString()); PageUtility.FindByValueDropDownList(ddlEstTermSubID, ESTTERM_SUB_ID.ToString()); ltrScript.Text = ""; if (!Page.IsPostBack) { Get_Refusal_Data(); } }
protected void btnDel_Click(object sender, EventArgs e) { if (xlstPerson.Items.Count > 0 && xlstPerson.SelectedIndex != -1) { xlstPerson.Items.Remove(xlstPerson.SelectedItem); xlblPersonNumber.Text = xlstPerson.Items.Count.ToString(); } else { JSHelper.Alert(UpdatePanel2, this, "请先选中要删除的对象!"); } }
//2차평가 점수 조정 protected void iBtnSave_EstQ_Click(object sender, ImageClickEventArgs e) { if (saveEstQ()) { this.ltrScript.Text = JSHelper.GetAlertScript("적용되었습니다."); GridBidingData(COMP_ID, EST_ID, ESTTERM_REF_ID, ESTTERM_SUB_ID, ESTTERM_STEP_ID, IS_ADMIN); } else { this.ltrScript.Text += JSHelper.GetAlertScript("실패하였습니다."); } }
protected void Button1_Click(object sender, EventArgs e) { helper.Params.Add("sm_status", Request["sm_status"]); helper.Params.Add("sm_id", id); helper.Update("Tb_storage_main", "sm_id"); Business.StorageHelper.checkStorageOk(id); JSHelper.WriteScript("alert('审核完成');location.href='ProductIn.aspx';"); //Response.Write(RoleList.Text); Response.End(); }
protected ActionResult DeleteEntity <T>(int id) where T : class, IBaseTable { BaseRepository repository = new BaseRepository(); var result = repository.Delete <T>(p => p.ID == id); if (!string.IsNullOrEmpty(result)) { return(Json(JSHelper.JsonMessage(result, false), JsonRequestBehavior.AllowGet)); } return(Json(JSHelper.JsonMessage("操作成功", true), JsonRequestBehavior.AllowGet)); }
protected void iBtnSave_Click(object sender, ImageClickEventArgs e) { if (doSave()) { this.ltrScript.Text = JSHelper.GetAlertScript("처리되었습니다."); doBind(); } else { this.ltrScript.Text += JSHelper.GetAlertScript("실패하였습니다."); } }
protected void ibnSearch_Click(object sender, ImageClickEventArgs e) { if (Check_EST()) { Binding(COMP_ID, EST_ID); } else { ltrScript.Text = JSHelper.GetAlertScript("평가 성격이 프로젝트평가가 아닙니다.", false); return; } }
protected void ibnCancelEstQ_Click(object sender, ImageClickEventArgs e) { Biz_Prj_Data objPrjData = new Biz_Prj_Data(); DataTable dataTable = objPrjData.GetDataTableSchema(); dataTable = UltraGridUtility.GetDataTableByCheckValue(UltraWebGrid1 , "cBox" , "selchk" , new string[] { "EST_DEPT_ID", "EST_EMP_ID", "PRJ_REF_ID", "STATUS_ID" } , dataTable); if (dataTable.Rows.Count == 0) { ltrScript.Text = JSHelper.GetAlertScript("상태가 평가완료가 아니거나 선택된 항목이 없습니다."); return; } else { dataTable = DataTypeUtility.FilterSortDataTable(dataTable, "STATUS_ID = 'E'"); } foreach (DataRow dataRow in dataTable.Rows) { dataRow["COMP_ID"] = COMP_ID; dataRow["EST_ID"] = EST_ID; dataRow["ESTTERM_REF_ID"] = ESTTERM_REF_ID; dataRow["ESTTERM_SUB_ID"] = ESTTERM_SUB_ID; dataRow["ESTTERM_STEP_ID"] = ESTTERM_STEP_ID; dataRow["STATUS_ID"] = "P"; } bool isOK = objPrjData.SaveStatus(dataTable); if (isOK) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 질의평가를 취소하였습니다."); GridBidingData(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EMP_REF_ID , SEARCH_ALL); SetConfirmStatusHtml(EST_JOB_IDS); } else { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 취소되지 않았습니다."); } }
protected void iBtnAddEmp_Click(object sender, ImageClickEventArgs e) { if ((hdfGroupRefID.Value == "") || (txtGroupName.Text == "")) { ltrScript.Text = JSHelper.GetAlertScript("그룹을 선택해주십시오.", false); return; } int cntAffRow = this.AddUserToGroup(); this.SetSelectedGroupList(); }
protected void iBtnSave_1_Click(object sender, ImageClickEventArgs e) { Biz_EstDeptOrgMaps estDeptOrgMap = new Biz_EstDeptOrgMaps(); estDeptOrgMap.ModifyEstDeptOrg(Convert.ToInt32(TreeView1.SelectedNode.Value) , PageUtility.GetIntByValueDropDownList(ddlHearderType) , (txtSort_Org.Text.Equals("0"))? 10 : int.Parse(txtSort_Org.Text) , PageUtility.GetIntByValueDropDownList(ddlDeptType) , txtDeptName_Org.Text); ltrScript.Text = JSHelper.GetAlertScript("정상적으로 저장되었습니다.", false); }
protected void iBtnDelete_Click(object sender, ImageClickEventArgs e) { this.IType = "D"; if (!this.TxrNotice()) { this.IType = "U"; } else { this.ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("현재 팝업창을 종료합니다.", true); } }
protected void iBtnFeedback_Click(object sender, ImageClickEventArgs e) { if (this.IListRefID < 1) { ltrScript.Text = JSHelper.GetAlertScript("게시물 정보를 알수 없습니다.", false); return; } else { this.SetFeedbackForm(); } }
protected void iBtnApplyWeight_Click(object sender, ImageClickEventArgs e) { if (ApplyWeight()) { this.ltrScript.Text = JSHelper.GetAlertScript("적용되었습니다."); GridBidingData(COMP_ID, EST_ID, ESTTERM_REF_ID, ESTTERM_SUB_ID, ESTTERM_STEP_ID); } else { this.ltrScript.Text = JSHelper.GetAlertScript("실패하였습니다."); } }
protected void Button1_Click(object sender, EventArgs e) { if (Session["PowerAudit"].ToString() != "1") { SiteHelper.NOPowerMessage(); } if (Page.IsValid) { string sql = string.Empty; string doContent = txtdoContent.Text; string doOperator = txtdoOperator.Text; string dostatus = ddStatus.SelectedValue; if (SiteHelper.getTrueNameByLoginId(doOperator).IsNullOrEmpty()) { JSHelper.WriteScript("alert('请正确输入处理人工号');history.back();"); Response.End(); } if (!dostatus.IsNumber()) { JSHelper.WriteScript("alert('请选择处理状态');history.back();"); Response.End(); } sql = "update Tb_Complaint set doOperator=@doOperator,doContent=@doContent,status=@dostatus,updateTime=getdate()"; if (dostatus == "2") { if (doContent.IsNullOrEmpty()) { JSHelper.WriteScript("alert('处理结果不能为空');history.back();"); Response.End(); } sql += ",endTime=getdate()"; } sql += " where id=" + Id; SqlHelper sp = LocalSqlHelper.WH; sp.Params.Add("@doContent", doContent); sp.Params.Add("@doOperator", doOperator); sp.Params.Add("@dostatus", dostatus); sp.Execute(sql); //写处理日志 string doWhat = "客诉处理:状态至" + dostatus + "(" + Warehousing.Business.ComplaintHelper.getStutusText(Convert.ToInt32(dostatus)) + "),处理人为:" + doOperator + ",处理意见:" + doContent; SiteHelper.writeLog("客诉处理", doWhat, Convert.ToInt32(Id)); JSHelper.WriteScript("alert('客诉处理成功');location.href='ComplaintList.aspx'"); } }
protected void btnSave_Click(object sender, EventArgs e) { Role Rolebll = new Role(); List <string> list = new List <string>();//建立事务列表 for (int i = 0; i <= gvModuleOperator.Rows.Count - 1; i++) { CheckBoxList chkAuthorityList = (CheckBoxList)gvModuleOperator.Rows[i].Cells[1].FindControl("chkAuthorityList"); Label lblVerify = (Label)gvModuleOperator.Rows[i].Cells[0].FindControl("lblVerify"); string[] vstate = lblVerify.Text.Split(',');//获取原始状态 for (int j = 0; j < chkAuthorityList.Items.Count; j++) { if (chkAuthorityList.Items[j].Enabled) { if (chkAuthorityList.Items[j].Selected) { if (vstate[j] != "1")//检查数据有没有变化 { string item = string.Empty; item = item + Rid.Text + "|" + gvModuleOperator.DataKeys[i].Values[0].ToString() + "|" + chkAuthorityList.Items[j].Value + "|1";//设置为1,加入权限 list.Add(item); } } else { if (vstate[j] != "0")//检查数据有没有变化 { string item = string.Empty; item = item + Rid.Text + "|" + gvModuleOperator.DataKeys[i].Values[0].ToString() + "|" + chkAuthorityList.Items[j].Value + "|0";//设置为0,删除删除 list.Add(item); } } } } } if (Rolebll.UpdateRoleOperator(list)) { BindModule(); JSHelper.Alert("设置成功!", this); } else { JSHelper.Alert("设置操作失败!", this); } }
protected void ibnSave_Click(object sender, ImageClickEventArgs e) { UltraGridRow row; Biz_DeptOpinionTgtEmps deptOpinionTgtEmp = new Biz_DeptOpinionTgtEmps(); DataTable dataTable = deptOpinionTgtEmp.GetDataTableSchema(); for (int i = 0; i < UltraWebGrid1.Rows.Count; i++) { row = UltraWebGrid1.Rows[i]; TemplatedColumn hdf_col = (TemplatedColumn)row.Band.Columns.FromKey("CTRL_EMP"); HiddenField hdfTgtEmpID = (HiddenField)((CellItem)hdf_col.CellItems[row.BandIndex]).FindControl("hdfTgtEmpID"); TemplatedColumn txt_col = (TemplatedColumn)row.Band.Columns.FromKey("CTRL_EMP"); TextBox txtTgtEmpName = (TextBox)((CellItem)txt_col.CellItems[row.BandIndex]).FindControl("txtTgtEmpName"); if (hdfTgtEmpID.Value.Equals("")) { row.Cells.FromKey("TGT_EMP_ID").Value = DBNull.Value; } else { row.Cells.FromKey("TGT_EMP_ID").Value = DataTypeUtility.GetToDouble(hdfTgtEmpID.Value); } } dataTable = UltraGridUtility.GetDataTableByAllValue(UltraWebGrid1 , new string[] { "TGT_DEPT_ID", "TGT_EMP_ID" } , dataTable); dataTable = DataTypeUtility.FilterSortDataTable(dataTable, "TGT_EMP_ID IS NOT NULL"); foreach (DataRow dataRow in dataTable.Rows) { dataRow["COMP_ID"] = COMP_ID; dataRow["EST_ID"] = EST_ID; dataRow["TGT_OPINION_YN"] = "Y"; dataRow["DATE"] = DateTime.Now; dataRow["USER"] = EMP_REF_ID; } bool isOK = deptOpinionTgtEmp.SaveDeptOpinionTgtEmp(dataTable, COMP_ID, EST_ID); if (isOK) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 의견상신 담당자를 설정하였습니다."); } else { ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다."); } }
protected void iBtnConfirm_Click(object sender, ImageClickEventArgs e) { //KPIResult kpiResult = new KPIResult(); bool isOK = false; _iymd = ddlEstTermMonth.SelectedValue.ToString(); /* * for (int i = 0; i < ugrdKpiResultList.Rows.Count; i++) * { * row = ugrdKpiResultList.Rows[i]; * col = (TemplatedColumn)row.Band.Columns.FromKey("selchk"); * chk = (CheckBox)((CellItem)col.CellItems[row.BandIndex]).FindControl("cBox"); * * if (chk.Checked) * { * if (Convert.ToDouble(row.Cells.FromKey("CHECKSTATUS").Value.ToString()) == 0) * { * isChkStat = true; * } * else * { * try * { * isOK = kpiResult.ConfirmStatus(int.Parse(row.Cells.FromKey("KPI_REF_ID").Value.ToString()) * , TMCODE * , "E"); * } * catch (Exception ex) * { * ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다.." + ex.Message, false); * return; * } * } * } * } * * if (isChkStat) * { * ltrScript.Text = JSHelper.GetAlertScript("일부 선택 항목이 입력및 수집된 항목이 아니어서 처리되지 않았습니다.", false); * } */ if (!isOK) { ltrScript.Text = JSHelper.GetAlertScript("확정 항목을 선택하세요.", false); } else { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 처리되었습니다.", false); } }
private void UpdateWorkTask() { if (!this.CheckFormData()) { return; } MicroBSC.BSC.Biz.Biz_Bsc_Work_Task objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Task(); objBSC.Iexec_ref_id = this.IExec_Ref_ID; objBSC.Itask_ref_id = this.ITask_Ref_ID; objBSC.Itask_name = txtTaskName.Text.Trim(); objBSC.Itask_desc = txtTaskDesc.Value; objBSC.Itask_weight = Convert.ToDecimal(GetStringDigit(this.txtTaskWeight.Text, "###0.0")); DateTime mydt1 = new DateTime(1900, 1, 1, 0, 0, 0); objBSC.Itgt_str_date = (calTgtStrDate.Value == null || calTgtStrDate.Value == "") ? mydt1 : Convert.ToDateTime(calTgtStrDate.Value); objBSC.Itgt_end_date = (calTgtEndDate.Value == null || calTgtEndDate.Value == "") ? mydt1 : Convert.ToDateTime(calTgtEndDate.Value); objBSC.Itgt_cost = Convert.ToInt32(GetStringDigit(this.txtTgtCost.Text, "###0")); objBSC.Irst_str_date = (calRstStrDate.Value == null || calRstStrDate.Value == "") ? mydt1 : Convert.ToDateTime(calRstStrDate.Value); objBSC.Irst_end_date = (calRstEndDate.Value == null || calRstEndDate.Value == "") ? mydt1 : Convert.ToDateTime(calRstEndDate.Value); objBSC.Irst_cost = Convert.ToInt32(GetStringDigit(this.txtRstCost.Text, "###0")); objBSC.Ido_rate = Convert.ToDecimal(GetStringDigit(this.txtDoRate.Text, "###0.0")); objBSC.Iadd_file = this.IAdd_File; objBSC.Iuse_yn = (this.chkUseYN.Checked) ? "Y" : "N"; objBSC.Itxr_user = gUserInfo.Emp_Ref_ID; int intRtn = objBSC.UpdateData(objBSC.Iexec_ref_id, objBSC.Itask_ref_id, objBSC.Itask_name, objBSC.Itask_desc, objBSC.Itask_weight, objBSC.Itgt_str_date, objBSC.Itgt_end_date, objBSC.Itgt_cost, objBSC.Irst_str_date, objBSC.Irst_end_date, objBSC.Irst_cost, objBSC.Ido_rate, objBSC.Iadd_file, objBSC.Iuse_yn, objBSC.Itxr_user); ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false); this.SetFormData(); this.SetButton(); }
protected void Page_Load(object sender, EventArgs e) { try { //判断是不是评审 if (!TeacherHelper.isJudge(Session["TeacherNumber"].ToString())) { //liJudge.Visible = false; this.FileUp.Attributes.Add("onchange", "javascript:return Check_FilePath();"); } if (!IsPostBack) { if (Session["TeacherNumber"] == null) { Response.Redirect("main-index.aspx"); } else { if (!IsPostBack) { using (var db = new TeachingCenterEntities()) { int teacher_id = TeacherHelper.getTeacherIDByNumber(Session["TeacherNumber"].ToString()); var teacher = (from it in db.Teacher where it.id == teacher_id select it).FirstOrDefault(); if (teacher.department == "") { JSHelper.AlertThenRedirect("请先完善个人单位!", "Person-index.aspx"); } DateTime now = DateTime.Now; var category = from it in db.ProjectCategory where it.is_deleted == 0 && it.stage == 0 select it; List <ProjectCategory> show = new List <ProjectCategory>(); foreach (var item in category) { DateTime end = Convert.ToDateTime(item.end_time); if (DateTime.Compare(end, now) > 0) { show.Add(item); } } rptSelect.DataSource = show; rptSelect.DataBind(); } } } } } catch { JSHelper.AlertThenRedirect("请先登录!", "main-index.aspx"); } }
protected ActionResult NoAuthorize(string responseType, string responseText) { ActionResult result; if (!string.IsNullOrEmpty(responseType)) { responseType = responseType.ToLower(); } switch (responseType) { case "json": result = new JsonResult { Data = JSHelper.JsonMessage(responseText, false, 0), JsonRequestBehavior = JsonRequestBehavior.AllowGet }; break; case "script": result = new JavaScriptResult { Script = JSHelper.ShowError(responseText) }; break; case "content": result = new ContentResult { Content = string.Format("{0}", responseText) }; break; case "view": result = new RedirectResult(string.Format("/Logon/Error?text={0}", responseText)); //new PartialViewResult { ViewName = "", ViewData = new ViewDataDictionary(new {text = responseText }) }; break; default: result = new JsonResult { Data = JSHelper.JsonMessage(responseText, false, 0), JsonRequestBehavior = JsonRequestBehavior.AllowGet }; //new ContentResult { Content = responseText }; //new ContentResult { Content = string.Format("{0},{1}", controllerName, actionName) }; break; } return(result); }
private void UpdateWorkExec() { if (!this.CheckFormData()) { return; } MicroBSC.BSC.Biz.Biz_Bsc_Work_Exec objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Exec(); objBSC.Iestterm_ref_id = this.IEstterm_Ref_ID; objBSC.Iest_dept_ref_id = this.IEst_Dept_Ref_ID; objBSC.Iwork_ref_id = this.IWork_Ref_ID; objBSC.Iexec_ref_id = Convert.ToInt32(this.IExec_Ref_ID); objBSC.Iexec_code = txtExecCode.Text.Trim(); objBSC.Iexec_name = txtExecName.Text.Trim(); objBSC.Iexec_desc = txtExecDesc.Text.Trim(); objBSC.Iexec_emp_id = Convert.ToInt32((this.hdfExecEmpId.Value == "") ? "0" : this.hdfExecEmpId.Value); objBSC.Iexec_issue = txtExecIssue.Text; objBSC.Iadd_file = this.IAdd_File; objBSC.Iapp_ref_id = this.IApp_Ref_ID; objBSC.Iuse_yn = (this.chkUseYN.Checked) ? "Y" : "N"; objBSC.Icomplete_yn = (this.chkCompleteYN.Checked) ? "Y" : "N"; objBSC.Itxr_user = gUserInfo.Emp_Ref_ID; int intRtn = objBSC.UpdateData(objBSC.Iestterm_ref_id, objBSC.Iest_dept_ref_id, objBSC.Iwork_ref_id, objBSC.Iexec_ref_id, objBSC.Iexec_code, objBSC.Iexec_name, objBSC.Iexec_desc, objBSC.Iexec_emp_id, objBSC.Iexec_issue, objBSC.Iadd_file, objBSC.Iapp_ref_id, objBSC.Iuse_yn, objBSC.Icomplete_yn, objBSC.Itxr_user); ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false); if (objBSC.Transaction_Result == "Y") { this.IEstterm_Ref_ID = objBSC.Iestterm_ref_id; this.IEst_Dept_Ref_ID = objBSC.Iest_dept_ref_id; this.IWork_Ref_ID = objBSC.Iwork_ref_id; this.IExec_Ref_ID = objBSC.Iexec_ref_id; this.IType = "U"; this.SetFormData(); this.SetButton(); } }
protected void ibnConfirm_Click(object sender, ImageClickEventArgs e) { //bool isJobOK = EstJobUtility.SetConfirmButtonVisible(COMP_ID // , EST_ID // , ESTTERM_REF_ID // , ESTTERM_SUB_ID // , ESTTERM_STEP_ID // , EST_JOB_ID // , ibnConfirm // , ibnConfirmCancel // , "Y" // , DateTime.Now // , EMP_REF_ID // , ltrScript); //// 만약 이전에 처리하지 않은 작업이 있다면 아래의 내용을 처리하지 못함 //if (!isJobOK) // return; Biz_Prj_EmpEstPrjMap objPrjEmpEstPrjMap = new Biz_Prj_EmpEstPrjMap(); DataTable dataTable = objPrjEmpEstPrjMap.GetPrjEmpEstPrjMap(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , 0 , 0 , 0).Tables[0]; dataTable.Columns.Add("DATE", typeof(DateTime)); dataTable.Columns.Add("USER", typeof(int)); foreach (DataRow dataRow in dataTable.Rows) { dataRow["DATE"] = DateTime.Now; dataRow["USER"] = EMP_REF_ID; } Biz_Prj_Data objPrjData = new Biz_Prj_Data(); bool isOK = objPrjData.CopyTgtMapDataToEstData(dataTable); if (isOK) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 평가자/사업관리 매핑정보를 평가리스트로 설정 및 확정하였습니다."); } else { ltrScript.Text = JSHelper.GetAlertScript("설정 중 오류가 발생하였습니다."); } }
protected void Button1_Click(object sender, EventArgs e) { helper.Params.Clear(); string areaCode = AreaCode.Text; string content = remark.Text; if (content.IsNullOrEmpty()) { JSHelper.WriteScript("alert('盘点数据不能为空!');history.back();"); } content = content.Replace(",", ","); content = content.Replace("\t", ","); string[] oneDate = content.Split('\r'); //数据检查 for (int i = 0; i < oneDate.Length; i++) { if (oneDate[i].Trim().IsNotNullAndEmpty()) { string[] info = oneDate[i].Split(','); if (info.Length < 2) { JSHelper.WriteScript("alert('盘点录入数据格式不对,注意是否最后有空白行');"); Response.End(); } if (!info[1].IsNumber() || info[0].IsNullOrEmpty()) { JSHelper.WriteScript("alert('格式不对:存在条码为空或数量非数值');"); Response.End(); } } } //数据写入 string sql = string.Empty; for (int i = 0; i < oneDate.Length; i++) { if (oneDate[i].Trim().IsNotNullAndEmpty()) { string[] info = oneDate[i].Split(','); sql = "insert into Tb_check_input(main_id,pro_txm,check_num,area_code) values(" + id + ",'" + info[0].Trim() + "'," + info[1].Trim() + ",'" + areaCode + "')"; //Response.Write(sql); helper.Execute(sql); } } JSHelper.WriteScript("alert('编辑成功');location.href='CheckStock.aspx';"); //Response.Write(RoleList.Text); Response.End(); }