Ejemplo n.º 1
0
        private void DoSearchLeadData(int pageIndex)
        {
            try
            {
                List <RenewInsuranceData> data = HistoryLeadBiz.GetHistoryMain(hidTicketId.Value);

                BindGridviewHistory((SLM.Application.Shared.GridviewPageController)pcTopHistory, data.ToArray(), pageIndex);
                UpHistoryMain.Update();
            }
            catch
            {
                throw;
            }
        }
Ejemplo n.º 2
0
        protected void lblHistoryMain_Click(object sender, GridViewCommandEventArgs e)
        {
            try
            {
                if (e.CommandName == "popup")
                {
                    List <string> agrList = new List <string>();
                    agrList = e.CommandArgument.ToString().Split('|').ToList();
                    var RenewInsuranceId = agrList[0];
                    var Version          = agrList[1];

                    _log.Debug(String.Format("RenewInsuranceId:{0} Version:{1}", RenewInsuranceId, Version));

                    var renewData = HistoryLeadBiz.GetHistoryRenewInsurance(RenewInsuranceId, Version);
                    List <PreleadCompareData>    policyData = HistoryLeadBiz.GetHistoryDetailPolicy(RenewInsuranceId, Version);
                    List <PreleadCompareActData> actData    = HistoryLeadBiz.GetHistoryDetailAct(RenewInsuranceId, Version);

                    BindRenewHistory(renewData);
                    bindHistoryDetail(policyData);
                    HistoryDetailAct(actData);

                    if (Request["type"] == "3")
                    {
                        pnHistoryPolicy.Visible = false;
                    }

                    ModalPopupHistoryDetail.Show();
                    UpHistoryDetail.Update();
                }
            }
            catch (Exception ex)
            {
                string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
                _log.Debug(message);
                AppUtil.ClientAlert(Page, message);
            }
        }