protected void btnContinue_click(object sender, DirectEventArgs e) { SPMBasic basic = new SPMBasic(); txtAPPLY_DATE.Text = DateTime.Now.ToString("yyyy/MM/dd"); txtDOC_NO.Text = basic.GetSPMFormNO("PRNF"); sbProd_group.Text = ""; txtMODEL_NAME.Text = ""; txtCUSTOMER.Text = ""; txtSALES_OWNER.Text = ""; txtPRODUCT_DES.Text = ""; txtPRODUCT_DES_REMARK.Text = ""; txtSALES_AREA.Text = ""; txtSALES_AREA_REMARK.Text = ""; txtMP_DATE.Text = ""; txtMP_DATE_REMARK.Text = ""; txtPROJECT_CODE.Text = ""; txtPROJECT_CODE_REMARK.Text = ""; txtTIME_QUANTITY.Text = ""; txtTIME_QUANTITY_REMARK.Text = ""; txtOTHERS.Text = ""; txtOTHERS_REMARK.Text = ""; this.btnContinue.Disabled = true; this.btnSave.Disabled = false; txtTP_PM.Text = ""; txtME_ENGINEER.Text = ""; txtEE_ENGINEER.Text = ""; txtNPI_PM.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] == null) { Response.Redirect("~/Default.aspx"); } else { lblLogonId.Text = Session["UserName"].ToString(); } if (!X.IsAjaxRequest) { UserRole UserRole_class = new UserRole(); if (UserRole_class.checkRole(lblLogonId.Text, function_id) == false) { ExtAspNet.Alert.Show("对不起,你没有权限操作!"); return; } Model_BorgUserInfo oModel_BorgUserInfo = new Model_BorgUserInfo(); Borg_User oBorg_User = new Borg_User(); oModel_BorgUserInfo = oBorg_User.GetUserInfoByLogonId(lblLogonId.Text); if (oModel_BorgUserInfo._EXISTS) { lblSite.Text = Borg_Tools.GetSiteInfo(); lblBu.Text = oModel_BorgUserInfo._BU; lblBuilding.Text = oModel_BorgUserInfo._Building; } SPMBasic basic = new SPMBasic(); txtAPPLY_DATE.Text = DateTime.Now.ToString("yyyy/MM/dd"); txtDOC_NO.Text = basic.GetSPMFormNO("PRNF"); BindDept(); BindTeamCategory(); DataTable dt = BindParamer("AttachmentPath"); } }