public static void JobFucntion(Model_Jobfunction parameters) { Model_Jobfunction cgroup = new Model_Jobfunction(); List <Model_Jobfunction> ret = cgroup.GetAll(); AppTools.SendResponse(HttpContext.Current.Response, ret.ObjectToJSON()); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { Model_Jobfunction j = new Model_Jobfunction(); droupJob.DataSource = j.GetAll(); droupJob.DataTextField = "Title"; droupJob.DataValueField = "JFID"; droupJob.DataBind(); JobFunctionListdrop.DataSource = j.GetAll(); JobFunctionListdrop.DataTextField = "Title"; JobFunctionListdrop.DataValueField = "JFID"; JobFunctionListdrop.DataBind(); Model_JobFunctionListMain main = new Model_JobFunctionListMain(); dropScoreMain.DataSource = main.GetAllActive(); dropScoreMain.DataTextField = "Title"; dropScoreMain.DataValueField = "JFMID"; dropScoreMain.DataBind(); if (!string.IsNullOrEmpty(Request.QueryString["g"]) && !string.IsNullOrEmpty(Request.QueryString["m"])) { add_section.Visible = true; int JFID = int.Parse(Request.QueryString["g"]); int JFMID = int.Parse(Request.QueryString["m"]); Model_JobFunctionListMap cgroup = new Model_JobFunctionListMap(); cgroup = cgroup.GetByID(JFID, JFMID); Score.Text = cgroup.Score.ToString(); JobFunctionListdrop.SelectedValue = JFID.ToString(); dropScoreMain.SelectedValue = cgroup.JFMID.ToString(); headsection_pan.InnerHtml = "Edit"; } } }
//public bool IsDup { get; set; } public Calculation_T6(int intResultSectionID, int TransactionID) { this.ResultSectionID = intResultSectionID; this.TransactionID = TransactionID; Model_ReportSectionItem rss = new Model_ReportSectionItem(); this.ReportSectionItem = rss.GetListItemBySectionID(this.ResultSectionID); Model_ReportItemResult ret = new Model_ReportItemResult(); this.ReportResultT4 = ret.GetItemReportByTransactionID(this.TransactionID, 4); this.ReportResultT2 = ret.GetItemReportByTransactionID(this.TransactionID, 2); Model_Jobfunction cj = new Model_Jobfunction(); this.JobFunctionList = cj.GetAll(); Model_JobFunctionListMain cjm = new Model_JobFunctionListMain(); this.JobFunctionListMain = cjm.GetAllActive(); Model_JobFunctionListMap cjmap = new Model_JobFunctionListMap(); this.JobFunctionListMap = cjmap.GetAllList(); Model_JFR1 r1 = new Model_JFR1(); this.Rule1 = r1.GetAll(); Model_JFR2 r2 = new Model_JFR2(); this.Rule2 = r2.GetAll(); Model_JFR3 r3 = new Model_JFR3(); this.Rule3 = r3.GetAll(); Model_JFR4 r4 = new Model_JFR4(); this.Rule4 = r4.GetAll(); }