public void SubmitResponse() { IList <DocumentInitiator> OverroleInitiators = new List <DocumentInitiator>(); foreach (GridViewRow row in ctlOverRoleGridview.Rows) { Label ctlInitiatorLabel = (Label)ctlOverRoleGridview.Rows[row.RowIndex].FindControl("ctlInitiatorLabel"); Label ctlEmailLabel = (Label)ctlOverRoleGridview.Rows[row.RowIndex].FindControl("ctlEmailLabel"); CheckBox ctlSMSChk = (CheckBox)ctlOverRoleGridview.Rows[row.RowIndex].FindControl("ctlSMSChk"); CheckBox ctlSkipChk = (CheckBox)ctlOverRoleGridview.Rows[row.RowIndex].FindControl("ctlSkipChk"); TextBox ctlSkipReasonText = (TextBox)ctlOverRoleGridview.Rows[row.RowIndex].FindControl("ctlSkipReasonText"); long DocumentInitiatorID = UIHelper.ParseLong(ctlOverRoleGridview.DataKeys[row.RowIndex]["InitiatorID"].ToString()); long UserID = UIHelper.ParseLong(ctlOverRoleGridview.DataKeys[row.RowIndex]["UserID"].ToString()); DocumentInitiator documentInitiator = ScgeAccountingQueryProvider.DocumentInitiatorQuery.FindProxyByIdentity(DocumentInitiatorID); documentInitiator.IsSkip = ctlSkipChk.Checked; documentInitiator.SkipReason = ctlSkipReasonText.Text; OverroleInitiators.Add(documentInitiator); //DocumentInitiatorService.SaveOrUpdate(documentInitiator); UpdatePanelOverRole.Update(); } DocumentInitiatorService.UpdateDocumentInitiatorWhenOverRole(OverroleInitiators); }
public void BindOverRoleGridview() { IList <DocumentInitiatorLang> initiatorList = ScgeAccountingQueryProvider.DocumentInitiatorQuery.GetDocumentInitiatorByDocumentIDAndInitiatorType(this.DocumentID); ctlOverRoleGridview.DataSource = initiatorList; ctlOverRoleGridview.DataBind(); UpdatePanelOverRole.Update(); }