protected void Page_Load(object sender, EventArgs e) { clsSpeedo.Authenticate(); ValidateUser(); //ckeContents.config.toolbar = new object[] // { // new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, // new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, // "/", // new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, // new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, // new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, // "/", // new object[] { "Styles", "Format", "Font", "FontSize" }, // new object[] { "TextColor", "BGColor" }, // }; ckeContents.config.toolbar = new object[] { new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "SpellChecker", "Scayt" }, new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" }, new object[] { "Image", "Table", "HorizontalRule", "Smiley", "SpecialChar" }, "/", new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" }, new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" }, new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" }, "/", new object[] { "Styles", "Format", "Font", "FontSize" }, new object[] { "TextColor", "BGColor" }, }; if (!Page.IsPostBack) { string strUsername = Request.Cookies["Speedo"]["UserName"]; int intGroupUpdateCode = Request.QueryString["GroupUpdateCode"].ToString().ToInt(); using (clsGroupUpdate objView = new clsGroupUpdate()) { objView.GroupUpdateCode = intGroupUpdateCode; objView.Fill(); txtTitle.Text = objView.Title; txtDescription.Text = objView.Description; lblGroupHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "1")); txtGroupHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "1"); //lblDivisionHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "2")); //txtDivisionHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "2"); txtPhotoSource.Text = objView.PhotoSource; hdnGroupHead.Value = GroupUpdateApproval.GetApprover(GroupUpdateApproval.GroupUpdateUserType.GroupHead, clsEmployee.GetDepartmentCode(strUsername)); ckeContents.Text = objView.Content; txtContributor.Text = objView.Contributor; } } }
protected void Page_Load(object sender, EventArgs e) { clsSpeedo.Authenticate(); ValidateUser(); string strUsername = Request.Cookies["Speedo"]["UserName"]; int intGroupUpdateCode = Request.QueryString["GroupUpdateCode"].ToString().ToInt(); string strStatus = ""; using (clsGroupUpdate objView = new clsGroupUpdate()) { objView.GroupUpdateCode = intGroupUpdateCode; objView.Fill(); if (objView.Status == "0") { strStatus = "For Approval"; } else if (objView.Status == "1") { strStatus = "Approved"; } else if (objView.Status == "2") { strStatus = "Disapproved"; } else if (objView.Status == "3") { strStatus = "Voided"; } lblContributor.Text = objView.Contributor; lblTitle.Text = objView.Title; lblCreateBy.Text = clsEmployee.GetName(objView.CreateBy); lblCreateOn.Text = Convert.ToDateTime(objView.CreateOn).ToString("MMM dd, yyyy"); //lblLink.Text = "<a href='../UploadedFiles/GroupUpdates/" + objView.ImageFilename + "' target='_blank'>View Image</a>"; lblImage.Text = "<img src='../UploadedFiles/GroupUpdates/" + objView.ImageFilename + "' width='200' height='119' alt='' /></a>"; lblDescription.Text = objView.Description; lblContent.Text = objView.Content; lblStatus.Text = strStatus; lblPhotoSource.Text = objView.PhotoSource; lblGroupHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "1")); txtGroupHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "1"); //lblDivisionHead.Text = clsEmployee.GetName(GroupUpdateApproval.GetApproverName(intGroupUpdateCode.ToString(), "2")); //txtDivisionHeadRemark.Text = GroupUpdateApproval.GetApproverRemarks(intGroupUpdateCode.ToString(), "2"); } }