public static void STRLabelContent(ref Label myLabel, string action, string category, string area, string itemCode, string userID, string appraisalYear, string appraisalSchool, string appraisalSession, string employeeID) { if (action == "Get") { myLabel.Text = AppraisalDataStrategy.LabelContent(userID, appraisalYear, appraisalSchool, employeeID, appraisalSession, category, area, itemCode); } }
public static void STRTextContent(ref TextBox myText, ref HtmlInputText myCount, string action, int textLength, string category, string area, string itemCode, string userID, string appraisalYear, string appraisalSchool, string appraisalSession, string employeeID) { string column = myText.ID.Substring(8, 1); if (action == "Get") { myText.Text = AppraisalDataStrategy.TextContent(userID, appraisalYear, appraisalSchool, employeeID, appraisalSession, category, area, itemCode, column); myCount.Value = (textLength - myText.Text.Length).ToString(); } else { string value = myText.Text; string result = AppraisalDataStrategy.TextContent(userID, appraisalYear, appraisalSchool, employeeID, appraisalSession, category, area, itemCode, column, value); } }
public static void STRCheckBoxContent(ref CheckBox myCheck, string action, string category, string area, string itemCode, string userID, string appraisalYear, string appraisalSchool, string appraisalSession, string employeeID) { if (action == "Get") { string value = AppraisalDataStrategy.CheckContent(userID, appraisalYear, appraisalSchool, employeeID, appraisalSession, category, area, itemCode); if (value == "1") { myCheck.Checked = true; } else { myCheck.Checked = false; } } else { string value = myCheck.Checked ? "1" : "0"; string result = AppraisalDataStrategy.CheckContent(userID, appraisalYear, appraisalSchool, employeeID, appraisalSession, category, area, itemCode, value); } }