Exemplo n.º 1
0
        private void SaveLife(DataRow dr)
        {
            Oracle.DataAccess.Client.OracleConnection conn = SQLStatic.SQL.OracleConnection();
            try
            {
                SQLStatic.Sessions.SetSessionValue(session_id, "Account_Number", dr["account_number"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "Employee_number", dr["employee_number"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "Category_Code", dr["category_code"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "Category_Plan", dr["category_plan"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "Family_Status_Code", dr["family_status_code"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "BENEFIT_LEVEL", dr["raw_multiplier_override"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "BENEFIT_AMOUNT", dr["raw_multiplier_override"].ToString(), conn);
                SQLStatic.Sessions.SetSessionValue(session_id, "Effective_date", ViewState["deffectiveDate"].ToString(), conn);

                SQLStatic.Sessions.SetSessionValue(session_id, "Skip", "1", conn);
                Data.CheckEnrollmentType(session_id, dr["record_id"].ToString());
                Data.SaveLifeCoverage(session_id, conn);
                Data.ProcessPendCoverages(session_id, dr["cvrg_group_header_id"].ToString(), "1", conn);
            }
            finally
            {
                conn.Close();
                conn.Dispose();
            }
        }