protected bool HasHrId() { FacultyReportsBusiness FRB = new FacultyReportsBusiness(); int codeostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); var prof = FRB.GetOstadInfoFromHR(codeostad); if (prof.Rows.Count > 0) { return(true); } else { return(false); } }
protected void btnTesti4_Click(object sender, EventArgs e) { LoginBusiness lgb = new LoginBusiness(); FacultyReportsBusiness facultyReportsBusiness = new FacultyReportsBusiness(); var userAdobe = "200" + Session[sessionNames.userID_StudentOstad].ToString(); DataTable dtHR = facultyReportsBusiness.GetOstadInfoFromHR(Convert.ToInt32(Session[sessionNames.userID_StudentOstad])); if (dtHR != null && dtHR.Rows.Count > 0) { string firtsName = dtHR.Rows[0]["name"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["name"].ToString().Trim(); string lastName = dtHR.Rows[0]["family"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["family"].ToString().Trim(); adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName); adobeConnectDTO.MeetingUrlPath = "/st99900999_13981107_4"; } string link = "http://" + adobeBusiness.OpenMeetingAsPresnter(adobeConnectDTO); Response.Redirect(link); }
protected void lnkLinkDefence_Click(object sender, EventArgs e) { System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)sender; GridDataItem item = (GridDataItem)btn.NamingContainer; Label vazId = (Label)item.FindControl("lblVazId"); if (vazId.Text == "1") { LoginBusiness lgb = new LoginBusiness(); FacultyReportsBusiness facultyReportsBusiness = new FacultyReportsBusiness(); var userAdobe = "200" + Session[sessionNames.userID_StudentOstad].ToString(); DataTable dtHR = facultyReportsBusiness.GetOstadInfoFromHR(Convert.ToInt32(Session[sessionNames.userID_StudentOstad])); if (dtHR != null && dtHR.Rows.Count > 0) { string firtsName = dtHR.Rows[0]["name"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["name"].ToString().Trim(); string lastName = dtHR.Rows[0]["family"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["family"].ToString().Trim(); adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName); var Link = item.FindControl("resLink") as Label; adobeConnectDTO.MeetingUrlPath = "/" + Link.Text.Replace("/", "");//name.Text; } } else { RadWindowManager1.RadAlert("جلسه دفاع در حال حاضر در دسترس نیست", 500, 100, "خطا", ""); return; } string link = "http://" + adobeBusiness.OpenMeetingAsPresnter(adobeConnectDTO); Response.Redirect(link); }
private void LoadRequestGrid() { int codeostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); if (!FRB.HasNotationId(codeostad)) { RadWindowManager1.RadAlert("به دلیل عدم وجود کد ملی در سامانه ثبت اساتید امکان ورود وجود ندارد", 400, 100, "پیام سیستم", "RedirectToMain"); } DataTable dtRequest = ProfReqBuss.GetAllRequestsByProfCode(codeostad); DataTable dtResult = ProfReqBuss.GetProfessorFromResearchByCode(codeostad); var prof = FRB.GetOstadInfoFromHR(codeostad); if (dtResult.Rows.Count == 0) { if (prof.Rows.Count > 0) { ViewState["hrId"] = prof.Rows[0][0].ToString(); } } else { ViewState["hrId"] = dtResult.Rows[0][0].ToString(); } grdEditRequests.DataSource = dtRequest; grdEditRequests.DataBind(); Business.university.CooperationRequest.CooperationRequestBusiness bsn = new Business.university.CooperationRequest.CooperationRequestBusiness(); //bool hasContract = false; //DataTable dt = bsn.getContractOfTeacher(Convert.ToInt32(ViewState["hrId"])); //if (dt.Rows.Count == 1) // if (dt.Rows[0]["contractFile"] != DBNull.Value) // hasContract = true; //dvContract.Visible = !hasContract; //A2.Visible = !hasContract; //A3.Visible = hasContract; }
private void LoadInfoToControls() { int codeostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); DataTable dtResult = FRB.GetOstadInfoFromHR(codeostad); if (dtResult.Rows.Count == 0) { string msg = "کد استادی شما در هیچ کدام از سامانه ها فعال نیست. لطفا جهت فعال سازی با کارشناس مربوطه تماس حاصل فرمایید"; RadWindowManager1.RadAlert(msg, 400, 200, "پیام سیستم", "RedirectToMain"); return; } Session.Add("hrInfoPeopleId", dtResult.Rows[0]["Id"]); ListItem itmSelect = new ListItem("انتخاب کنید", ""); ListItem itmOther = new ListItem("سایر", "0"); DTO.University.Faculty.editInfoStruct editInfo = FRB.getOstadInf(codeostad); //Session.Add("hrInfoPeopleId", editInfo.hrId); DataTable dtControlToSidaList = FRB.GetAllControlToSidaFields(); DataRow existsDrp = null; ChangedInfoDTO oChangeDrp = new ChangedInfoDTO(); existsDrp = dtControlToSidaList.AsEnumerable() .Where(x => x.Field <string>("ControlName") == drpProvince1.ID + "Value") .FirstOrDefault(); oChangeDrp = new ChangedInfoDTO(); oChangeDrp.Code_Ostad = codeostad; oChangeDrp.ControlToFieldId = Convert.ToInt32(existsDrp["Id"]); oChangeDrp.ControlId = drpProvince1.ID + "value"; oChangeDrp.OldValue = getOldValue(existsDrp["id"].ToString(), editInfo);// as string; ChangeList.Add(oChangeDrp); existsDrp = dtControlToSidaList.AsEnumerable() .Where(x => x.Field <string>("ControlName") == drpLivingCity.ID + "Value") .FirstOrDefault(); oChangeDrp = new ChangedInfoDTO(); oChangeDrp.Code_Ostad = codeostad; oChangeDrp.ControlToFieldId = Convert.ToInt32(existsDrp["Id"]); oChangeDrp.ControlId = drpLivingCity.ID + "value"; oChangeDrp.OldValue = getOldValue(existsDrp["id"].ToString(), editInfo);// as string; ChangeList.Add(oChangeDrp); existsDrp = dtControlToSidaList.AsEnumerable() .Where(x => x.Field <string>("ControlName") == drpProvince2.ID + "Value") .FirstOrDefault(); oChangeDrp = new ChangedInfoDTO(); oChangeDrp.Code_Ostad = codeostad; oChangeDrp.ControlToFieldId = Convert.ToInt32(existsDrp["Id"]); oChangeDrp.ControlId = drpProvince2.ID + "value"; oChangeDrp.OldValue = getOldValue(existsDrp["id"].ToString(), editInfo);// as string; ChangeList.Add(oChangeDrp); existsDrp = dtControlToSidaList.AsEnumerable() .Where(x => x.Field <string>("ControlName") == drpWorkingCity.ID + "Value") .FirstOrDefault(); oChangeDrp = new ChangedInfoDTO(); oChangeDrp.Code_Ostad = codeostad; oChangeDrp.ControlToFieldId = Convert.ToInt32(existsDrp["Id"]); oChangeDrp.ControlId = drpWorkingCity.ID + "value"; oChangeDrp.OldValue = getOldValue(existsDrp["id"].ToString(), editInfo);// as string; ChangeList.Add(oChangeDrp); foreach (Control item in dvAddressFileds.Controls) { DataRow exists = null; if (item is TextBox) { exists = dtControlToSidaList.AsEnumerable() .Where(x => x.Field <string>("ControlName") == item.ID) .FirstOrDefault(); } if (exists != null) { ChangedInfoDTO oChange = new ChangedInfoDTO(); oChange.Code_Ostad = codeostad; oChange.ControlToFieldId = Convert.ToInt32(exists["Id"]); oChange.ControlId = item.ID; oChange.OldValue = getOldValue(exists["id"].ToString(), editInfo);// as string; ChangeList.Add(oChange); } } ViewState.Add("ChangeList", ChangeList); txtHomePhone.Text = editInfo.telHome.ToString(); txtWorkPhone.Text = editInfo.telKar.ToString(); txtMobileNumber.Text = editInfo.telMobile.ToString(); txtLivingAddress.Text = editInfo.addressHome.ToString(); txtWorkingAddress.Text = editInfo.addressKar.ToString(); txtLivingZipCode.Text = editInfo.codePosti.ToString(); txtEmail.Text = editInfo.email.ToString(); setDropDownOstanSource(drpProvince1, editInfo.ostanHome); setDropDownOstanSource(drpProvince2, editInfo.ostanKar); setDropDownShahrSource(drpLivingCity, editInfo.ostanHome, editInfo.shahrHome); setDropDownShahrSource(drpWorkingCity, editInfo.ostanKar, editInfo.shahrKar); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int code_ostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); if (ProfReqBuss.HasPendingRequest(code_ostad, (int)RequestTypeId.EditCooperation)) { string msg = "شما به دلیل وجود درخواست تایید نشده از این نوع درخواست نمی توانید درخواست جدید ثبت کنید."; showMessage(msg, true); return; } DataTable dtResult = FRB.GetOstadInfoFromHR(code_ostad); if (dtResult.Rows.Count == 0) { string msg = "کد استادی شما در هیچ کدام از سامانه ها فعال نیست. لطفا جهت فعال سازی با کارشناس مربوطه تماس حاصل فرمایید"; RadWindowManager1.RadAlert(msg, 400, 200, "پیام سیستم", "RedirectToMain"); return; } Session.Add("hrInfoPeopleId", dtResult.Rows[0]["Id"]); int cooperation = 0; if (dtResult.Rows[0]["cooperation"] != DBNull.Value) { cooperation = Convert.ToInt32(dtResult.Rows[0]["cooperation"]); } ViewState.Add("cooperation", cooperation); if (cooperation == 1 || cooperation == 2) { chbkCooperation.SelectedValue = cooperation.ToString(); } if (cooperation == 3) { chbkCooperation.Items[0].Selected = true; chbkCooperation.Items[1].Selected = true; } DataTable dtDanesh = CB.SelectAllDaneshkade(); chbkDaneshkade.DataSource = dtDanesh; chbkDaneshkade.DataValueField = "ID"; chbkDaneshkade.DataTextField = "namedanesh"; chbkDaneshkade.DataBind(); string field = getSelectedFields(); if (field != "") { DataTable dtDaneshkade = FRB.GetDaneshkadeByGroup(field); chbkDaneshkade.ClearSelection(); foreach (DataRow item in dtDaneshkade.Rows) { if (chbkDaneshkade.Items.FindByValue(item["iddanesh"].ToString()) != null) { chbkDaneshkade.Items.FindByValue(item["iddanesh"].ToString()).Selected = true; } } //foreach (DataRow item in dtDaneshkade.Rows) //{ // switch (item["iddanesh"].ToString()) // { // case "1": // chbkDaneshkade.Items.FindByValue("1").Selected = true; // break; // case "2": // chbkDaneshkade.Items.FindByValue("2").Selected = true; // break; // case "3": // chbkDaneshkade.Items.FindByValue("3").Selected = true; // break; // case "8": // chbkDaneshkade.Items.FindByValue("8").Selected = true; // break; // } //} getGroupByDaneshkadeValue(); checkCheckBoxGroup(); } addDepratements(Convert.ToInt32(Session["hrInfoPeopleId"])); } }
private void LoadInfoToForm() { int codeostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); DataTable dtResault = FRB.GetOstadInfoFromHR(codeostad); if (dtResault.Rows.Count > 0) { var dataRow = dtResault.Rows[dtResault.Rows.Count - 1]; Session.Add("hrInfoPeopleId", dataRow["Id"]); var lastHokm = ProfReqBuss.GetLastHokmInfoByInfoPeopleID(Convert.ToInt32(dataRow["Id"])); pnlSabeghe.Visible = true; DataTable dtUniName = CB.GetNameUni_fcoding(); for (int i = 0; i <= dtUniName.Rows.Count - 1; i++) { dtUniName.Rows[i][0] = dtUniName.Rows[i][0].ToString().Replace("ي", "ی"); } drpPastUni.DataSource = dtUniName; drpPastUni.DataTextField = "namecoding"; drpPastUni.DataValueField = "ID"; drpPastUni.DataBind(); drpPastUni.Items.Insert(0, new RadComboBoxItem("جستجو و انتخاب کنید", "0")); if (rblIsHeiat.Items.FindByValue("2") != null) { rblIsHeiat.SelectedValue = "2"; } if (lastHokm.HokmId > 0) { string martabeh = lastHokm.Martabeh.ToString(); if (string.IsNullOrWhiteSpace(martabeh) || martabeh == "0" || martabeh == "-2" || martabeh == "8") { if (drpMartabe.Items.FindByValue("0") != null) { drpMartabe.SelectedValue = "0"; } } else if (drpMartabe.Items.FindByValue(martabeh) != null) { drpMartabe.SelectedValue = martabeh; } string payeh = lastHokm.Payeh.ToString(); txtPaye.Text = payeh; if (txtPaye.Text == "") { txtPaye.Text = "0"; } string hireType = lastHokm.Type_Estekhdam.ToString(); if (string.IsNullOrWhiteSpace(hireType)) { if (drpHireType.Items.FindByValue("-1") != null) { drpHireType.SelectedValue = "-1"; } } else if (drpHireType.Items.FindByValue(hireType) != null) { drpHireType.SelectedValue = hireType; } string uniKhedmat = lastHokm.Uni_Khedmat.ToString(); if (string.IsNullOrWhiteSpace(uniKhedmat) || uniKhedmat == "0") { if (drpPastUni.Items.FindItemByValue("0") != null) { drpPastUni.Items.FindItemByValue("0").Selected = true; } } else if (drpPastUni.Items.FindItemByValue(uniKhedmat) != null) { drpPastUni.SelectedValue = uniKhedmat; } string uniKhedmatType = lastHokm.Uni_KhedmatType.ToString(); if (string.IsNullOrWhiteSpace(uniKhedmatType) || uniKhedmat == "0") { if (ddlPastUniType.Items.FindByValue("0") != null) { ddlPastUniType.SelectedValue = "0"; } } else if (ddlPastUniType.Items.FindByValue(uniKhedmatType) != null) { ddlPastUniType.SelectedValue = uniKhedmatType; } if (dtResault.Rows[0]["nahveh_hamk"] != DBNull.Value) { if (rdblHireType.Items.FindByValue(lastHokm.Nahveh_Hamk.ToString()) != null) { rdblHireType.SelectedValue = lastHokm.Nahveh_Hamk.ToString(); } } string dateSodoorHokm = lastHokm.Date_Hokm.ToString(); txtDateSodoorHokm.Text = dateSodoorHokm; string DateEjraHokm = lastHokm.Date_RunHokm.ToString(); txtDateEjraHokm.Text = DateEjraHokm; string hokmNumber = lastHokm.Number_Hokm.ToString(); txtHokmNumber.Text = hokmNumber; string mablaghHokm = lastHokm.MablaghHokm.ToString(); txtMablaghHokm.Text = mablaghHokm; if (lastHokm.Martabeh < 8 && lastHokm.Martabeh > 0) { if (rblIsHeiat.Items.FindByValue("1") != null) { rblIsHeiat.SelectedValue = "1"; } ChangeDetailsPanelStatus(true); } else //هیات علمی نیست { if (rblIsHeiat.Items.FindByValue("2") != null) { rblIsHeiat.SelectedValue = "2"; } ChangeDetailsPanelStatus(false); } if (lastHokm.BoundHour != null) { chkBoundHour.Checked = Convert.ToBoolean(lastHokm.BoundHour); } } hdnMartabe.Value = drpMartabe.SelectedItem.Value; hdnBoundHour.Value = chkBoundHour.Checked.ToString(); hdnMablaghHokm.Value = txtMablaghHokm.Text; hdnHokmNumber.Value = txtHokmNumber.Text; hdnDateEjraHokm.Value = txtDateEjraHokm.Text; hdnDateSodoorHokm.Value = txtDateSodoorHokm.Text; hdnHireType2.Value = lastHokm.Nahveh_Hamk.ToString(); hdnPastUniType.Value = ddlPastUniType.SelectedItem.Value; hdnPastUni.Value = drpPastUni.SelectedItem.Value; hdnHireType.Value = drpHireType.SelectedItem.Value; hdnPaye.Value = txtPaye.Text; hdnHokmImage.Value = !string.IsNullOrEmpty(lastHokm.HokmUrl) ? "1" : "0"; if (lastHokm.Martabeh > 0 && lastHokm.Martabeh < 8) { rblIsHeiat.SelectedValue = "1"; ChangeDetailsPanelStatus(true); } else { rblIsHeiat.SelectedValue = "2"; ChangeDetailsPanelStatus(false); } VisibleBtn(); } else { pnlSabeghe.Visible = true; DataTable dtUniName = CB.GetNameUni_fcoding(); for (int i = 0; i <= dtUniName.Rows.Count - 1; i++) { dtUniName.Rows[i][0] = dtUniName.Rows[i][0].ToString().Replace("ي", "ی"); } drpPastUni.DataSource = dtUniName; drpPastUni.DataTextField = "namecoding"; drpPastUni.DataValueField = "ID"; drpPastUni.DataBind(); drpPastUni.Items.Insert(0, new RadComboBoxItem("جستجو و انتخاب کنید", "0")); if (rblIsHeiat.Items.FindByValue("2") != null) { rblIsHeiat.SelectedValue = "2"; } VisibleBtn(); } }
private void LoadInfoToControls() { ListItem itmSelect = new ListItem("انتخاب کنید", "-1"); ListItem itmOther = new ListItem("سایر", "0"); int codeostad = Convert.ToInt32(Session[sessionNames.userID_StudentOstad]); DTO.University.Faculty.editInfoStruct editInfo = FRB.getOstadInf(codeostad); //Session.Add("hrInfoPeopleId", editInfo.hrId); DataTable dtResault = FRB.GetOstadInfoFromHR(codeostad); if (dtResault.Rows.Count == 0) { string msg = "کد استادی شما در هیچ کدام از سامانه ها فعال نیست. لطفا جهت فعال سازی با کارشناس مربوطه تماس حاصل فرمایید"; RadWindowManager1.RadAlert(msg, 400, 200, "پیام سیستم", "RedirectToMain"); return; } Session.Add("hrInfoPeopleId", dtResault.Rows[0]["Id"]); DataTable dtControlToSidaList = FRB.GetAllControlToSidaFields(); txtCodeMeli.Text = editInfo.idd_Melli; txtFirstName.Text = editInfo.name; txtFamily.Text = editInfo.family; txtFatherName.Text = editInfo.fatherName; AddValueToChangeList(codeostad, dtControlToSidaList, txtFatherName.Text, txtFatherName.ID); txtShCode.Text = editInfo.idd; AddValueToChangeList(codeostad, dtControlToSidaList, txtShCode.Text, txtShCode.ID); txtYearBorn.Text = editInfo.salTavalod; AddValueToChangeList(codeostad, dtControlToSidaList, txtYearBorn.Text, txtYearBorn.ID); drpNezam.DataSource = CB.GetStatusMilitary_fcoding(); drpNezam.DataTextField = "namecoding"; drpNezam.DataValueField = "id"; drpNezam.DataBind(); drpNezam.Items.Insert(0, new ListItem(itmSelect.Text, itmSelect.Value)); drpNezam.Items.Insert(drpNezam.Items.Count, new ListItem(itmOther.Text, itmOther.Value)); drpNezam.SelectedValue = editInfo.nezam.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, drpNezam.SelectedValue, drpNezam.ID + "Value"); rdblMarriage.SelectedValue = editInfo.taahol ? "2" : "1"; AddValueToChangeList(codeostad, dtControlToSidaList, rdblMarriage.SelectedValue, rdblMarriage.ID); rblGender.SelectedValue = editInfo.sexIsMan ? "1" : "2"; AddValueToChangeList(codeostad, dtControlToSidaList, rblGender.SelectedValue, rblGender.ID); if (!editInfo.sexIsMan) { pnlMilitary.Visible = false; } drpLastMaghta.Items.Clear(); drpLastMaghta.DataSource = CB.GetCodingByTypeId(2); drpLastMaghta.DataValueField = "Id"; drpLastMaghta.DataTextField = "namecoding"; drpLastMaghta.DataBind(); drpLastMaghta.Items.Insert(0, new ListItem(itmSelect.Text, itmSelect.Value)); drpLastMaghta.SelectedValue = editInfo.maghta.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.maghta == 0 ? "" : editInfo.maghta.ToString(), drpLastMaghta.ID + "Value"); DataTable dtField = CB.SelectField_fcoding(); for (int i = 0; i <= dtField.Rows.Count - 1; i++) { dtField.Rows[i]["nameresh"] = dtField.Rows[i]["nameresh"].ToString().Replace("ي", "ی"); } drpReshte.DataSource = dtField; drpReshte.DataTextField = "nameresh"; drpReshte.DataValueField = "id"; drpReshte.DataBind(); drpReshte.Items.Insert(0, new RadComboBoxItem(itmSelect.Text, itmSelect.Value)); drpReshte.Items.Insert(drpReshte.Items.Count, new RadComboBoxItem(itmOther.Text, itmOther.Value)); drpReshte.SelectedValue = editInfo.reshte.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.reshte == 0 ? "" : editInfo.reshte.ToString(), drpReshte.ID + "Value"); drpUniversityType.SelectedValue = editInfo.typeUniMadrak.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, drpUniversityType.SelectedValue, drpUniversityType.ID + "Value"); txtSiba.Text = editInfo.siba; AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.siba, txtSiba.ID); txtYearGetMadrak.Text = editInfo.salMadrak; AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.salMadrak, txtYearGetMadrak.ID); txtSanavat.Text = editInfo.sanavat; AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.sanavat, txtSanavat.ID); DataTable dtCountrySource = CB.GetNameCountry_fcoding(); drpCountry.DataSource = dtCountrySource.Select("id<56").CopyToDataTable(); drpCountry.DataTextField = "namecoding"; drpCountry.DataValueField = "id"; drpCountry.DataBind(); drpCountry.Items.Insert(0, new ListItem(itmSelect.Text, itmSelect.Value)); drpCountry.SelectedValue = editInfo.keshvar.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, editInfo.keshvar.ToString(), drpCountry.ID + "Value"); DataTable dtUniName = CB.GetNameUni_fcoding(); for (int i = 0; i <= dtUniName.Rows.Count - 1; i++) { dtUniName.Rows[i][0] = dtUniName.Rows[i][0].ToString().Replace("ي", "ی"); } drpUniName.DataSource = dtUniName; drpUniName.DataTextField = "namecoding"; drpUniName.DataValueField = "ID"; drpUniName.DataBind(); drpUniName.Items.Insert(0, new RadComboBoxItem(itmSelect.Text, itmSelect.Value)); drpUniName.Items.Insert(drpUniName.Items.Count, new RadComboBoxItem(itmOther.Text, itmOther.Value)); drpUniName.SelectedValue = editInfo.nameUniMadrak.ToString(); AddValueToChangeList(codeostad, dtControlToSidaList, drpUniName.SelectedValue, drpUniName.ID + "Value"); if (editInfo.bime) { rdblBimehStatus.SelectedValue = "1"; drpBimehType.Enabled = true; txtInsuranceNumber.Enabled = true; drpBimehType.SelectedValue = editInfo.bimeType.ToString(); txtInsuranceNumber.Text = editInfo.bimeNum; drpBimehType.Enabled = true; txtInsuranceNumber.Enabled = true; } else { rdblBimehStatus.SelectedValue = "2"; } AddValueToChangeList(codeostad, dtControlToSidaList, drpBimehType.SelectedValue, drpBimehType.ID + "Value"); AddValueToChangeList(codeostad, dtControlToSidaList, txtInsuranceNumber.Text, txtInsuranceNumber.ID); chbkIsRetired.Checked = editInfo.bazneshaste; AddValueToChangeList(codeostad, dtControlToSidaList, chbkIsRetired.Checked.ToString(), "chbkIsRetired"); ViewState.Add(listOfChanges, ChangeList); getScansAreNotInDB(); }