fd29a9ee by Yashwant

Merge branch 'master' of http://54.197.18.130/yashwant/hdfc

2 parents ebc01031 8159f453
...@@ -39,7 +39,7 @@ class Kernel extends HttpKernel ...@@ -39,7 +39,7 @@ class Kernel extends HttpKernel
39 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 39 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
40 \Illuminate\Session\Middleware\StartSession::class, 40 \Illuminate\Session\Middleware\StartSession::class,
41 \Illuminate\View\Middleware\ShareErrorsFromSession::class, 41 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
42 //\App\Http\Middleware\VerifyCsrfToken::class, 42 \App\Http\Middleware\VerifyCsrfToken::class,
43 \App\Http\Middleware\BeforeFilter::class, 43 \App\Http\Middleware\BeforeFilter::class,
44 \App\Http\Middleware\AfterFilter::class, 44 \App\Http\Middleware\AfterFilter::class,
45 ], 45 ],
......
...@@ -1139,30 +1139,6 @@ function createQaireTab() ...@@ -1139,30 +1139,6 @@ function createQaireTab()
1139 1139
1140 //Supervisor Recommendation - By Manish on 20-02-17 1140 //Supervisor Recommendation - By Manish on 20-02-17
1141 //Supervisor Recommendation - By Prashant Jadhav on 07-11-17 1141 //Supervisor Recommendation - By Prashant Jadhav on 07-11-17
1142 if($dataarr['clientcode'])
1143 {
1144 $supComnt = DB::table('DU_CRM_SUPERVISOR_COMMENTS')->where('V_CUSTID','=',$dataarr['clientcode'])->orderBy('V_LAST_REVIEWED_ON','DESC')->limit(3)->get();
1145 }
1146
1147
1148 foreach($supComnt as $supervisorcomments)
1149 {
1150
1151 $data.="<p style='clear:both'><br>
1152 <label style='width:15%;' title=''>Supervisor Recommendation:</label>
1153 <textarea id='dialer_userremarks' name='dialer_userremarks' style='width:30%;height:100px;' maxlength=250 placeholder='Only 250 Characters' readonly>".$supervisorcomments->T_BM_INSTRUCTION."</textarea>&nbsp;&nbsp;&nbsp;&nbsp;<label style='width:15%;' title=''>BM Product Recommendation:</label><textarea id='dialer_userremarks' name='dialer_userremarks' style='width:20%;height:100px;' maxlength=250 placeholder='Only 250 Characters' readonly>".$supervisorcomments->T_BM_PRODUCT_RECO."</textarea><br><br>
1154 <label style='width:15%;' title=''>Last Review On:</label>
1155 <label style='width:30%;' title=''>".$supervisorcomments->V_LAST_REVIEWED_ON."</label>";
1156 $data.="&nbsp;&nbsp;&nbsp;<label style='width:15%;' title=''>Agent Comment: </label>";
1157
1158 if($supervisorcomments->agent_comments)
1159 $data.="<textarea id='".$supervisorcomments->id."_agent_comment' name='agent_comment' style='width:20%;height:100px;' maxlength=250 placeholder='Only 250 Characters'>".$supervisorcomments->agent_comments."</textarea>";
1160 else
1161 $data.="<textarea id='".$supervisorcomments->id."_agent_comment' name='agent_comment' style='width:20%;height:100px;' maxlength=250 placeholder='Only 250 Characters'></textarea>";
1162 $data.="</p><div class='container'>
1163 <input type=button id='".$supervisorcomments->id."_submitComments' class='btn btn-info' value='Submit' onclick='updateagentcomments(".$supervisorcomments->id.");'style=' margin: 5px 0 5px 660px;'>
1164 </div>";
1165 }
1166 1142
1167 $data.="<legend class='task_legend'>Primary Questions</legend> 1143 $data.="<legend class='task_legend'>Primary Questions</legend>
1168 1144
...@@ -2798,655 +2774,7 @@ function createChildCase() ...@@ -2798,655 +2774,7 @@ function createChildCase()
2798 2774
2799 return $data; 2775 return $data;
2800 } 2776 }
2801 //Function for lead form creation by Gopal
2802 function createLeadEntryForm()
2803 { $leadFormProducts = DB::table("leadform_products")->get();
2804 $dataarr=$this->recruitdata["peopledata"];
2805 $products = "<option value=''></option>";
2806 foreach ($leadFormProducts as $key => $fields)
2807 {
2808 if($fields->products)
2809 $products.= "<option value='$fields->products'>$fields->products</option>";
2810 }
2811 $branchcodeMaster=DB::table("UD_CRM_BR_MASTER")->select('BR_CODE','BR_NAME')->get();
2812 $brcode = "<option value=''></option>";
2813 $brname = "<option value=''></option>";
2814 foreach ($branchcodeMaster as $key => $brmaster)
2815 {
2816 if($brmaster->BR_CODE)
2817 $brcode.= "<option value='$brmaster->BR_CODE'>$brmaster->BR_CODE</option>";
2818 if($brmaster->BR_NAME)
2819 $brname.= "<option value='$brmaster->BR_CODE'>$brmaster->BR_NAME</option>";
2820 }
2821 $sm_master= DB::table("UD_SM_MAPPING")->select(DB::raw('distinct USER_NAME'))->where('USER_NAME','!=','')->get();
2822 $smname="<option value=''></option>";
2823 foreach ($sm_master as $key => $sm_name)
2824 {
2825 if($sm_name->USER_NAME)
2826 $smname.= "<option value='$sm_name->USER_NAME'>$sm_name->USER_NAME</option>";
2827 }
2828 $cust_profile= DB::table("UD_LEAD_ENTRY_CUSTOMER_PROFILE")->select('CUST_PROFILE')->get();
2829 $custprofile="<option value=''></option>";
2830 foreach ($cust_profile as $key => $cust_pro) {
2831 $custprofile.="<option value='$cust_pro->CUST_PROFILE'>$cust_pro->CUST_PROFILE</option>";
2832 }
2833 $dataarr=$this->recruitdata["peopledata"];
2834 $data="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
2835 <h5>Lead Entry Form</h5>
2836 <hr/><br>
2837
2838 <div style='clear:both;width:100%;'>
2839 <div style='width:49%;float:left'>
2840 <label class='label-small_new' style='width:29%;font-weight:bold;'>Customer Name</label>
2841 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['firstname']."' id='customer_name' readonly>
2842 </div>
2843 </div>
2844 <br><br>
2845 <div style='clear:both;width:100%;'>
2846 <div style='width:49%;float:left'>
2847 <label class='label-small_new' style='width:29%;font-weight:bold;'>Branch Name</label>
2848 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='br_name'>$brname</select>
2849 </div>
2850 <div style='width:49%;float:left'>
2851 <label class='label-small_new' style='width:29%;font-weight:bold;'>LG Code</label>
2852 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='' id='lg_code'>
2853 </div>
2854 </div>
2855 <br><br>
2856 <div style='clear:both;width:100%;'>
2857 <div style='width:49%;float:left'>
2858 <label class='label-small_new' style='width:29%;font-weight:bold;'>Mobile Number</label>
2859 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['mobile']."' id='mobile'>
2860 </div>
2861 <div style='width:49%;float:left'>
2862 <label class='label-small_new' style='width:29%;font-weight:bold;'>Processing entity</label>
2863 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='processing_entity'><option value='SALES'>SALES</option><option value='OCC'>OCC</option></select>
2864 </div>
2865 </div>
2866 <br><br>
2867 <div style='clear:both;width:100%;'>
2868 <div style='width:49%;float:left'>
2869 <label class='label-small_new' style='width:29%;font-weight:bold;'>Lead Owner</label>
2870 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='lead_owner'>$smname</select>
2871 </div>
2872 <div style='width:49%;float:left'>
2873 <label class='label-small_new' style='width:29%;font-weight:bold;'>Lead Priority</label>
2874 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='lead_priority'><option value='Urgent'>Urgent</option><option value='Normal'>Normal</option></select>
2875 </div>
2876 </div>
2877 <br><br>
2878 <div style='clear:both;width:100%;'>
2879 <div style='width:49%;float:left'>
2880 <label class='label-small_new' style='width:29%;font-weight:bold;'>Product</label>
2881 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='product'>$products</select>
2882 </div>
2883 <div style='width:49%;float:left'>
2884 <label class='label-small_new' style='width:29%;font-weight:bold;'>Customer Profile</label>
2885 <select class='form_hrm_select select2multi' style='width:50%;border: 2px solid;' id='customer_profile'>$custprofile</select>
2886 </div>
2887 </div>
2888 <br><br>
2889 <div style='clear:both;width:100%;'>
2890 <div>
2891 <label class='label-small_new' style='width:14%;font-weight:bold;'>Remarks</label>
2892 <textarea class='form_new form_new_amend'style='width:74%;border: 2px solid;' maxlength='512' id='remarks' rows='4'></textarea>
2893 </div>
2894 </div>
2895 <br><br>
2896 <div style='clear:both;width:100%;'>
2897 <input type='button' class='btn btn-default btn-md' style='margin-left:40%;font-weight:bold;' value='Save' id='leadformSave'>
2898 </div>
2899 </div>
2900
2901 <script>
2902
2903
2904
2905 $('#leadformSave').click(function()
2906 {
2907 if(kstychCall['ts_Talk']<1||Math.ceil(((getNowTS()-kstychCall['ts_Talk'])/1000))<10)
2908 {
2909 simpleNotification('error','topRight','please get On call first');
2910 $('#br_name').select2('data', {id:'', text:''});
2911 $('#lg_code').val('');
2912 $('#processing_entity').select2('data', {id:'', text:''});
2913 $('#lead_owner').select2('data', {id:'', text:''});
2914 $('#lead_priority').select2('data', {id:'', text:''});
2915 $('#product').select2('data', {id:'', text:''});
2916 $('#customer_profile').select2('data', {id:'', text:''});
2917 $('#remarks').val('');
2918 return;
2919 }
2920 else
2921 {
2922 var br_code = $('#br_name').val();
2923 var br_name= $('#br_name option:selected').text();
2924 var lg_code = $('#lg_code').val();
2925 var mobile = $('#mobile').val();
2926 var processing_entity = $('#processing_entity').val();
2927 var lead_owner = $('#lead_owner').val();
2928 var lead_priority = $('#lead_priority').val();
2929 var product = $('#product').val();
2930 var customer_profile = $('#customer_profile').val();
2931 var remarks = $('#remarks').val();
2932
2933 if(br_name==''){
2934 simpleNotification('error','topRight','please select Branch Name');
2935 return;
2936 }else if(lg_code==''){
2937 simpleNotification('error','topRight','please enter LG Code');
2938 return;
2939 }else if(mobile==''){
2940 simpleNotification('error','topRight','please enter Mobile Number');
2941 return;
2942 }else if(processing_entity==''){
2943 simpleNotification('error','topRight','please select Processing Entity');
2944 return;
2945 }else if(lead_owner==''){
2946 simpleNotification('error','topRight','please Select lead owner');
2947 return;
2948 }else if(lead_priority==''){
2949 simpleNotification('error','topRight','please select lead Priority');
2950 return;
2951 }else if(product==''){
2952 simpleNotification('error','topRight','please select Product');
2953 return;
2954 }else if(customer_profile==''){
2955 simpleNotification('error','topRight','please select Customer Profile');
2956 return;
2957 }else if(remarks==''){
2958 simpleNotification('error','topRight','please select Remarks');
2959 return;
2960 }
2961
2962 $('#br_name').select2('data', {id:'', text:''});
2963 $('#lg_code').val('');
2964 $('#processing_entity').select2('data', {id:'', text:''});
2965 $('#lead_owner').select2('data', {id:'', text:''});
2966 $('#lead_priority').select2('data', {id:'', text:''});
2967 $('#product').select2('data', {id:'', text:''});
2968 $('#customer_profile').select2('data', {id:'', text:''});
2969 $('#remarks').val('');
2970
2971 var postdata='varid='+$('#varid').val();
2972 postdata+='&mobile='+'".$dataarr["mobile"]."';
2973 postdata+='&client='+'".$dataarr["client"]."';
2974 postdata+='&clientcode='+'".$dataarr["clientcode"]."';
2975 postdata+='&firstname='+'".$dataarr["firstname"]."';
2976 postdata+='&br_code='+encodeURIComponent(br_code);
2977 postdata+='&br_name='+encodeURIComponent(br_name);
2978 postdata+='&lg_code='+encodeURIComponent(lg_code);
2979 postdata+='&processing_entity='+encodeURIComponent(processing_entity);
2980 postdata+='&lead_owner='+encodeURIComponent(lead_owner);
2981 postdata+='&lead_priority='+encodeURIComponent(lead_priority);
2982 postdata+='&product='+encodeURIComponent(product);
2983 postdata+='&customer_profile='+encodeURIComponent(customer_profile);
2984 postdata+='&remarks='+encodeURIComponent(remarks);
2985
2986
2987
2988 doAjax('leadentryform',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
2989 }
2990
2991 });
2992
2993 </script>
2994 ";
2995
2996 return $data;
2997
2998 }
2999 function createRacingCust()
3000 {
3001 $dataarr=$this->recruitdata["peopledata"];
3002
3003 $data="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
3004 <h5>Customer Information</h5>
3005 <hr/><br>
3006 <br><br>
3007 <div style='clear:both;width:100%;'>
3008 <div style='width:49%;float:left'>
3009 <label class='label-small_new' style='width:29%;'>Date</label>
3010 <label class='label-small_new' style='width:50%;' >".date('Y-m-d')."</label>
3011 </div>
3012 <br><br>
3013
3014 <div style='width:49%;float:left'>
3015 <label class='label-small_new' style='width:29%;'>PB Code</label>
3016 <input type='text' class='form_new form_new_amend'style='width:50%;' value='' id='PBcode'>
3017 </div>
3018 <div style='width:49%;float:left'>
3019 <label class='label-small_new' style='width:29%;'>PB Name</label>
3020 <input type='text' class='form_new form_new_amend'style='width:50%;' value='' id='PBname'>
3021 </div>
3022
3023 </div>
3024 <br><br>
3025 <div style='clear:both;width:100%;'>
3026
3027 <div style='width:49%;float:left'>
3028 <label class='label-small_new' style='width:29%;'>PB landline Contact No.</label>
3029 <input type='text' class='form_new form_new_amend' style='width:50%;' id='PBlandlineContNo'>
3030 </div>
3031 <div style='width:49%;float:left'>
3032 <label class='label-small_new' style='width:29%;'>Supervisor Mail ID</label>
3033 <input type='text' class='form_new form_new_amend' style='width:50%;' id='SupervisormailID'>
3034 </div>
3035
3036 </div>
3037 <br><br>
3038 <div style='clear:both;width:100%;'>
3039
3040 <div style='width:49%;float:left' class='search'>
3041 <label class='label-small_new' style='width:29%;'>Group ID</label>
3042 <input type='text' class='form_new form_new_amend' style='width:52%;' id='groupID' value=''>
3043 </div>
3044 <div style='width:49%;float:left'>
3045 <label class='label-small_new' style='width:29%;'>Group ID Name</label>
3046 <input type='text' class='form_new form_new_amend' style='width:50%;' id='groupidname' value=''>
3047 </div>
3048
3049 </div>
3050 <br><br>
3051 <div style='clear:both;width:100%;'>
3052
3053 <div style='width:49%;float:left'>
3054 <label class='label-small_new' style='width:29%;'>Cust ID</label>
3055 <input type='text' class='form_new form_new_amend' style='width:50%;' id='custID' maxlength='16'>
3056 </div>
3057 <div style='width:49%;float:left'>
3058 <label class='label-small_new' style='width:29%;'>Cust Name</label>
3059 <input type='text' class='form_new form_new_amend' style='width:50%;' id='custname' value=''>
3060 </div>
3061
3062 </div>
3063 <br><br>
3064 <div style='clear:both;width:100%;'>
3065 <div style='width:49%;float:left'>
3066 <label class='label-small_new' style='width:29%;'>Relationship With Group ID</label>
3067 <input type='text' class='form_new form_new_amend' style='width:50%;' id='RelationshipGroupID' maxlength='16'>
3068 </div>
3069 <div style='width:49%;float:left'>
3070 <label class='label-small_new' style='width:29%;'>Cust ID</label>
3071 <input type='text' class='form_new form_new_amend' style='width:50%;' id='Custid' maxlength='16'>
3072 </div>
3073
3074 </div>
3075 <br><br>
3076 <div style='clear:both;width:100%;'>
3077 <div style='width:49%;float:left'>
3078 <label class='label-small_new' style='width:29%;'>Cust Name</label>
3079 <input type='text' class='form_new form_new_amend' style='width:50%;' id='CustName' value=''>
3080 </div>
3081 <div style='width:49%;float:left'>
3082 <label class='label-small_new' style='width:29%;'>Relationship With Group ID</label>
3083 <input type='text' class='form_new form_new_amend' style='width:50%;' id='relationshipgroupid' maxlength='16'>
3084 </div>
3085
3086 </div>
3087 <br><br>
3088 <div style='clear:both;width:100%;'>
3089 <div style='width:49%;float:left'>
3090
3091 <label class='label-small_new' style='width:29%;'>Grouping</label>
3092 <select id='newGroupdditiongroup' class='form_hrm_select select2multi' style='width:50%'>
3093 <option value='New_Group'>New Group</option>
3094 <option value='Addition_to_group'>Addition to group</option>
3095 <option value='Addition_to_group'>Regroup</option>
3096 </select>
3097
3098 </div>
3099 <div style='width:49%;float:left'>
3100 <label class='label-small_new' style='width:29%;'>Racing from</label>
3101 <input type='text' class='form_new form_new_amend' style='width:50%;' id='racingfrom'>
3102 </div>
3103 </div>
3104 <br><br><br>
3105
3106
3107 <br><br>
3108 <div style='clear:both;width:100%;'>
3109 <input type='button' class='btn btn-default btn-md' style='margin-left:40%' value='Save' id='CRSave'>
3110 </div>
3111 </div>
3112
3113 <script>
3114
3115
3116
3117 $('#CRSave').click(function()
3118 {
3119 var snumber = $('#snumber').val();
3120 var PBname = $('#PBname').val();
3121 var PBcode = $('#PBcode').val();
3122 var PBlandlineContNo = $('#PBlandlineContNo').val();
3123 var SupervisormailID = $('#SupervisormailID').val();
3124 var groupID = $('#groupID').val();
3125 var groupidname = $('#groupidname').val();
3126 var custID = $('#custID').val();
3127 var custname = $('#custname').val();
3128 var RelationshipGroupID = $('#RelationshipGroupID').val();
3129 var Custid = $('#Custid').val();
3130 var CustName = $('#CustName').val();
3131 var relationshipgroupid = $('#relationshipgroupid').val();
3132 var newGroupdditiongroup = $('#newGroupdditiongroup').val();
3133 var racingfrom = $('#racingfrom').val();
3134
3135 var postdata='s_no='+encodeURIComponent(snumber);
3136 postdata+='&pb_name='+encodeURIComponent(PBname);
3137 postdata+='&pb_code='+encodeURIComponent(PBcode);
3138 postdata+='&pb_landline_contact_no='+encodeURIComponent(PBlandlineContNo);
3139 postdata+='&supervisor_mail_id='+encodeURIComponent(SupervisormailID);
3140 postdata+='&group_id='+encodeURIComponent(groupID);
3141 postdata+='&group_id_name='+encodeURIComponent(groupidname);
3142 postdata+='&cust_id='+encodeURIComponent(custID);
3143 postdata+='&cust_name='+encodeURIComponent(custname);
3144 postdata+='&relationship_with_group_id='+encodeURIComponent(RelationshipGroupID);
3145 postdata+='&cust_id_next='+encodeURIComponent(Custid);
3146 postdata+='&cust_name_next='+encodeURIComponent(CustName);
3147 postdata+='&relationship_with_group_id_next='+encodeURIComponent(relationshipgroupid);
3148 postdata+='&new_group_addition_to_group='+encodeURIComponent(newGroupdditiongroup);
3149 postdata+='&racing_from='+encodeURIComponent(racingfrom);
3150 postdata+='&mobile='+'".$dataarr["mobile"]."';
3151 postdata+='&client='+'".$dataarr["client"]."';
3152 postdata+='&clientcode='+'".$dataarr["clientcode"]."';
3153
3154 doAjax('custrace',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
3155 });
3156
3157 </script>";
3158
3159 return $data;
3160 }
3161 //for RLP
3162 function createRLP()
3163 {
3164 $dataarr=$this->recruitdata["peopledata"];
3165 $rlpcust = DB::table('p11086_cop_rlp_cust_base_uat')->where('pbcode','=',$dataarr["client"])->where('cod_cust','=',$dataarr["clientcode"])->select('*')->get();
3166 $data="";
3167 //echo "<pre>".print_r($rlpcust)."</pre>";
3168 $data.="<fieldset><legend class='new-recruit_legend'>RLP Customer WISE</legend>";
3169
3170 $data.="<div class=custom1 style='width:100%;'>
3171 <h2></h2>";
3172
3173 $data.="<hr><br><table class='table kDataTable' cellpadding=0 cellspacing=0 border=0>
3174 <thead><tr>
3175 <td class='table_hrm_heading_green'>Product</td>
3176 <td class='table_hrm_heading_green'>Opportunity</td>
3177 <td class='table_hrm_heading_green'>Contacted</td>
3178 <td class='table_hrm_heading_green'>Pitched</td>
3179 <td class='table_hrm_heading_green'>LG</td>
3180
3181 </tr></thead>";
3182 $data.="<tr>
3183 <td>AL (overall)</td>
3184 <td>".$rlpcust[0]->al_opp."</td>
3185 <td>".$rlpcust[0]->al_called_opp."</td>
3186 <td>".$rlpcust[0]->al_pitch."</td>
3187 <td>".$rlpcust[0]->al_lg."</td>
3188 </tr>
3189 <tr>
3190 <td>PL/BL (overall)</td>
3191 <td>".$rlpcust[0]->pl_opp."</td>
3192 <td>".$rlpcust[0]->pl_called_opp."</td>
3193 <td>".$rlpcust[0]->pl_pitch."</td>
3194 <td>".$rlpcust[0]->pl_lg."</td>
3195 </tr>
3196 <tr>
3197 <td>TWL </td>
3198 <td>".$rlpcust[0]->twl_pa_opp."</td>
3199 <td>".$rlpcust[0]->twl_called_opp."</td>
3200 <td>".$rlpcust[0]->twl_pitch."</td>
3201 <td>".$rlpcust[0]->twl_lg."</td>
3202
3203 </tr>
3204 <tr>
3205 <td>HL</td>
3206 <td>".$rlpcust[0]->hl_opp."</td>
3207 <td>".$rlpcust[0]->hl_called_opp."</td>
3208 <td>".$rlpcust[0]->hl_pitch."</td>
3209 <td>".$rlpcust[0]->hl_pitch."</td>
3210 </tr>
3211 <tr>
3212 <td>GL</td>
3213 <td></td>
3214 <td></td>
3215 <td>".$rlpcust[0]->gl_pitch."</td>
3216 <td>".$rlpcust[0]->gl_lg."</td>
3217 </tr>
3218 <tr>
3219 <td>LAS</td>
3220 <td>".$rlpcust[0]->las_opp."</td>
3221 <td>".$rlpcust[0]->las_called_opp."</td>
3222 <td>".$rlpcust[0]->las_pitch."</td>
3223 <td>".$rlpcust[0]->las_lg."</td>
3224
3225 </tr>
3226 <tr>
3227 <td>LAP</td>
3228 <td>".$rlpcust[0]->lap_opp."</td>
3229 <td>".$rlpcust[0]->lap_called_opp."</td>
3230 <td></td>
3231 <td>".$rlpcust[0]->lap_lg."</td>
3232 </tr>
3233 <tr>
3234 <td>HSL(Unpenetrated)</td>
3235 <td>".$rlpcust[0]->hsl_opp."</td>
3236 <td>".$rlpcust[0]->hsl_called_opp."</td>
3237 <td>".$rlpcust[0]->hsl_pitch."</td>
3238 <td></td>
3239 </tr>
3240 <tr>
3241 <td>Credit Card- New Sourcing</td>
3242 <td>".$rlpcust[0]->cc_eli_new_opp."</td>
3243 <td>".$rlpcust[0]->cc_called_opp."</td>
3244 <td>".$rlpcust[0]->cc_pitch."</td>
3245 <td>".$rlpcust[0]->cc_lg."</td>
3246 </tr>
3247 <tr>
3248 <td>CC Activation</td>
3249 <td>".$rlpcust[0]->cc_activation_opp."</td>
3250 <td>".$rlpcust[0]->cc_activation_called_opp."</td>
3251 <td></td>
3252 <td></td>
3253 </tr>
3254 <tr>
3255 <td>Insurance (Premium) LI </td>
3256 <td>".$rlpcust[0]->li_opp."</td>
3257 <td>".$rlpcust[0]->li_called_opp."</td>
3258 <td></td>
3259 <td></td>
3260 </tr>
3261 <tr>
3262 <td>FD (Unpenetrated) </td>
3263 <td>".$rlpcust[0]->fd_opp."</td>
3264 <td>".$rlpcust[0]->fd_called_opp."</td>
3265 <td>".$rlpcust[0]->fd_pitch."</td>
3266 <td></td>
3267 </tr>
3268 <tr>
3269 <td>LTD Activation - Savings Account</td>
3270 <td>".$rlpcust[0]->ltd_act_saving_opp."</td>
3271 <td>".$rlpcust[0]->ltd_act_saving_called_opp."</td>
3272 <td></td>
3273 <td></td>
3274 <td></td>
3275 <td></td>
3276 <td></td>
3277 </tr>
3278 <tr>
3279 <td>NB/MB Activations</td>
3280 <td>".$rlpcust[0]->nb_mb_opp."</td>
3281 <td>".$rlpcust[0]->nb_mb_called_opp."</td>
3282 <td>".$rlpcust[0]->nb_mb_pitch."</td>
3283 <td>".$rlpcust[0]->nb_mb_lg."</td>
3284 </tr>
3285 <tr>
3286 <td>Aadhaar Seeding</td>
3287 <td>".$rlpcust[0]->aadhaar_opp."</td>
3288 <td>".$rlpcust[0]->aadhaar_called_opp."</td>
3289 <td>".$rlpcust[0]->aadhaar_pitch."</td>
3290 <td>".$rlpcust[0]->aadhaar_activation."</td>
3291 </tr>
3292 <tr>
3293 <td>Digital Activation</td>
3294 <td>".$rlpcust[0]->digi2_score_opp."</td>
3295 <td>".$rlpcust[0]->digi2_score_called_opp."</td>
3296 <td></td>
3297 <td></td>
3298
3299 </tr>
3300 <tr>
3301 <td>BillPayments</td>
3302 <td>".$rlpcust[0]->digi_billpay_opp."</td>
3303 <td>".$rlpcust[0]->digi_billpay_called_opp."</td>
3304 <td>".$rlpcust[0]->bill_pay_pitch."</td>
3305 <td></td>
3306 </tr>
3307 <tr>
3308 <td>Financial Transactions(Basic Banking)</td>
3309 <td>".$rlpcust[0]->digi_basic_banking_opp."</td>
3310 <td>".$rlpcust[0]->digi_basic_banking_called_opp."</td>
3311 <td></td>
3312 <td></td>
3313 </tr>
3314 <tr>
3315 <td>Digital 2.0 Score(Ecom Shopping Inactive)</td>
3316 <td>".$rlpcust[0]->digi_ecom_shopping_opp."</td>
3317 <td>".$rlpcust[0]->digi_ecom_shopping_called_opp."</td>
3318 <td></td>
3319 <td></td>
3320
3321 </tr>
3322 <tr>
3323 <td>Digital 2.0 Score(Investment Inactive)</td>
3324 <td>".$rlpcust[0]->digi_investment_opp."</td>
3325 <td>".$rlpcust[0]->digi_investment_called_opp."</td>
3326 <td>".$rlpcust[0]->invest_pitch."</td>
3327 <td></td>
3328
3329 </tr>
3330 <tr>
3331 <td>Reduction in Physical Transactions</td>
3332 <td>".$rlpcust[0]->digi_physical_opp."</td>
3333 <td>".$rlpcust[0]->digi_physical_called_opp."</td>
3334 <td></td>
3335 <td></td>
3336 </tr>
3337 </table></div></fieldset>";
3338
3339 return $data;
3340
3341 }
3342 2777
3343 function createOneAssistForm()
3344 {
3345 $dataarr=$this->recruitdata["peopledata"];
3346 $data="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
3347 <h5>One Assist Form</h5>
3348 <hr/><br>
3349
3350 <div style='clear:both;width:100%;'>
3351 <div style='width:49%;float:left'>
3352 <label class='label-small_new' style='width:29%;font-weight:bold;'>Customer Name</label>
3353 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['firstname']."' id='customer_name'>
3354 </div>
3355 <div style='width:49%;float:left'>
3356 <label class='label-small_new' style='width:29%;font-weight:bold;'>Mobile Number</label>
3357 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['mobile']."' id='mobile'>
3358 </div>
3359 </div>
3360 <br><br>
3361 <div style='clear:both;width:100%;'>
3362 <div style='width:49%;float:left'>
3363 <label class='label-small_new' style='width:29%;font-weight:bold;'>COD_CUST</label>
3364 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['clientcode']."' id='clientcode'>
3365 </div>
3366 <div style='width:49%;float:left'>
3367 <label class='label-small_new' style='width:29%;font-weight:bold;'>UCIC_ID</label>
3368 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['clientcode']."' id='ucicid_clientcode'>
3369 </div>
3370 </div>
3371 <br><br>
3372 <div style='clear:both;width:100%;'>
3373 <div style='width:49%;float:left'>
3374 <label class='label-small_new' style='width:29%;font-weight:bold;'>PB CODE</label>
3375 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['client']."' id='client'>
3376 </div>
3377 <div style='width:49%;float:left'>
3378 <label class='label-small_new' style='width:29%;font-weight:bold;'>UNIT</label>
3379 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['Unit']."' id='unit'>
3380 </div>
3381 </div>
3382 <br><br>
3383 <div style='clear:both;width:100%;'>
3384 <div style='width:49%;float:left'>
3385 <label class='label-small_new' style='width:29%;font-weight:bold;'>EMAIL1</label>
3386 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='".$dataarr['emailid']."' id='emailid'>
3387 </div>
3388 <div style='width:49%;float:left'>
3389 <label class='label-small_new' style='width:29%;font-weight:bold;'>CUST REMARKS</label>
3390 <input type='text' class='form_new form_new_amend' style='width:50%;border: 2px solid;' value='' id='cust_remarks'>
3391 </div>
3392 </div>
3393 <br><br>
3394
3395 <br><br>
3396 <div style='clear:both;width:100%;'>
3397 <div>
3398 <label class='label-small_new' style='width:14%;font-weight:bold;'>AGENT REMARKS</label>
3399 <textarea class='form_new form_new_amend'style='width:74%;border: 2px solid;' maxlength='512' id='agent_remarks' rows='4'></textarea>
3400 </div>
3401 </div>
3402 <br><br>
3403 <div style='clear:both;width:100%;'>
3404 <input type='button' class='btn btn-default btn-md' style='margin-left:40%;font-weight:bold;' value='Save' id='oneassistformSave'>
3405 </div>
3406 </div>
3407
3408 <script>
3409
3410
3411
3412 $('#oneassistformSave').click(function()
3413 {
3414
3415 var customer_name = $('#customer_name').val();
3416 var clientcode = $('#clientcode).val();
3417 var ucicid_clientcode = $('#ucicid_clientcode').val();
3418 var mobile = $('#mobile').val();
3419 var client = $('#client').val();
3420 var unit = $('#unit').val();
3421 var emailid = $('#emailid').val();
3422 var cust_remarks = $('#cust_remarks').val();
3423 var agent_remarks = $('#agent_remarks').val();
3424
3425
3426
3427 var postdata='varid='+$('#varid').val();
3428 postdata+='&mobile='+'".$dataarr["mobile"]."';
3429 postdata+='&client='+'".$dataarr["client"]."';
3430 postdata+='&clientcode='+'".$dataarr["clientcode"]."';
3431 postdata+='&customer_name='+'".$dataarr["firstname"]."';
3432 postdata+='&ucicid_clientcode='+'".$dataarr["ucicid_clientcode"]."';
3433 postdata+='&unit='+'".$dataarr["Unit"]."';
3434 postdata+='&emailid='+'".$dataarr["emailid"]."';
3435 postdata+='&cust_remarks='+encodeURIComponent(cust_remarks);
3436 postdata+='&agent_remarks='+encodeURIComponent(agent_remarks);
3437
3438
3439 doAjax('oaentryform',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
3440
3441
3442 });
3443
3444 </script>
3445 ";
3446
3447 return $data;
3448
3449 }
3450 function colorCodeRec($id) 2778 function colorCodeRec($id)
3451 { 2779 {
3452 $fdirty=$this->recruitdata["dirty"]; 2780 $fdirty=$this->recruitdata["dirty"];
...@@ -3579,11 +2907,6 @@ function CreateForm(&$frm) ...@@ -3579,11 +2907,6 @@ function CreateForm(&$frm)
3579 if($tbname=='CLP History')$tabsdata.=$this->createQaireHistTab(); 2907 if($tbname=='CLP History')$tabsdata.=$this->createQaireHistTab();
3580 if($tbname=='ComplaintManagement')$tabsdata.=$this->createCompManage(); 2908 if($tbname=='ComplaintManagement')$tabsdata.=$this->createCompManage();
3581 if($tbname=='ChildCase')$tabsdata.=$this->createChildCase(); 2909 if($tbname=='ChildCase')$tabsdata.=$this->createChildCase();
3582 //if($tbname=='RacingCustomer')$tabsdata.=$this->createRacingCust();
3583 if($tbname=='Racing Format')$tabsdata.=$this->createRacingCust();
3584 if($tbname=='Lead Entry Form')$tabsdata.=$this->createLeadEntryForm();
3585 if($tbname=='RLP')$tabsdata.=$this->createRLP();
3586 if($tbname=='One Assist')$tabsdata.=$this->createOneAssistForm();
3587 $tabsdata.="</div>"; 2910 $tabsdata.="</div>";
3588 $i++; 2911 $i++;
3589 } 2912 }
......
...@@ -103,8 +103,57 @@ class FrameworkDbSchema extends Migration { ...@@ -103,8 +103,57 @@ class FrameworkDbSchema extends Migration {
103 $table->string('userremarks', 5000); 103 $table->string('userremarks', 5000);
104 $table->longText('userdata'); 104 $table->longText('userdata');
105 $table->string('group', 200)->index('group'); 105 $table->string('group', 200)->index('group');
106 $table->integer('attempt');
107 $table->string('priority', 10);
108 $table->longText('question');
106 }); 109 });
107 DB::statement("ALTER TABLE `crmcalls` ADD INDEX(`created_at`);"); 110 DB::statement("ALTER TABLE `crmcalls` ADD INDEX(`created_at`);");
111
112 Schema::create('crmcalls_archive', function(Blueprint $table)
113 {
114 $table->bigIncrements('id');
115 $table->timestamps();
116 $table->string('number', 100)->index('number');
117 $table->integer('user_id')->index('user_id');
118 $table->integer('sipid_id');
119 $table->integer('crm_id')->index('crm_id');
120 $table->string('client', 200)->index('campaign_id');
121 $table->string('department', 200)->index('list_id');
122 $table->string('state', 50);
123 $table->string('hsource', 100);
124 $table->string('type', 50);
125 $table->string('statuscode', 20);
126 $table->string('status', 100)->index('status');
127 $table->string('substatus', 100);
128 $table->integer('dialline_id');
129 $table->string('did', 50)->index('did');
130 $table->bigInteger('ts_Wait');
131 $table->bigInteger('ts_Call');
132 $table->bigInteger('ts_Talk');
133 $table->bigInteger('ts_Recstart');
134 $table->bigInteger('ts_Recend');
135 $table->bigInteger('ts_Dispo');
136 $table->bigInteger('ts_Close');
137 $table->integer('waitSec');
138 $table->integer('callSec');
139 $table->integer('talkSec');
140 $table->integer('recstartSec');
141 $table->integer('recendSec');
142 $table->integer('dispoSec');
143 $table->longText('data');
144 $table->integer('recsize');
145 $table->string('uniqueid', 100)->index('uniqueid');
146 $table->string('userstatus', 200)->index('userstatus');
147 $table->string('usersubstatus', 200);
148 $table->dateTime('usercallback');
149 $table->string('userremarks', 5000);
150 $table->longText('userdata');
151 $table->string('group', 200)->index('group');
152 $table->integer('attempt');
153 $table->string('priority', 10);
154 $table->longText('question');
155 });
156 DB::statement("ALTER TABLE `crmcalls_archive` ADD INDEX(`created_at`);");
108 157
109 Schema::create('crmcampaigns', function(Blueprint $table) 158 Schema::create('crmcampaigns', function(Blueprint $table)
110 { 159 {
...@@ -365,6 +414,13 @@ class FrameworkDbSchema extends Migration { ...@@ -365,6 +414,13 @@ class FrameworkDbSchema extends Migration {
365 $table->dateTime('dialer_lastcall')->index('dialer_lastcall'); 414 $table->dateTime('dialer_lastcall')->index('dialer_lastcall');
366 $table->integer('crmlist_id')->index('crmlist_id'); 415 $table->integer('crmlist_id')->index('crmlist_id');
367 $table->string('group', 200)->index('group'); 416 $table->string('group', 200)->index('group');
417 $table->string('bttc', 20);
418 $table->string('service_vs_product', 30);
419 $table->string('resolution', 30);
420 $table->string('satisfaction', 30);
421 $table->string('final_call_assessment', 30);
422 $table->longText('question');
423 $table->string('mf_isa', 30);
368 }); 424 });
369 DB::statement('ALTER TABLE `records` ADD FULLTEXT(`peopledata`);'); 425 DB::statement('ALTER TABLE `records` ADD FULLTEXT(`peopledata`);');
370 426
...@@ -528,6 +584,15 @@ class FrameworkDbSchema extends Migration { ...@@ -528,6 +584,15 @@ class FrameworkDbSchema extends Migration {
528 $table->integer('confup'); 584 $table->integer('confup');
529 $table->string('clients', 10000); 585 $table->string('clients', 10000);
530 }); 586 });
587
588 Schema::create('supervisor_message', function(Blueprint $table) {
589 $table->bigIncrements("id");
590 $table->timestamps();
591 $table->string("sup_id","20");
592 $table->string("agents","1000");
593 $table->string("message","500");
594 $table->string("status","1000");
595 });
531 596
532 Schema::create('userlogs', function(Blueprint $table) 597 Schema::create('userlogs', function(Blueprint $table)
533 { 598 {
...@@ -572,8 +637,111 @@ class FrameworkDbSchema extends Migration { ...@@ -572,8 +637,111 @@ class FrameworkDbSchema extends Migration {
572 $table->string('exten', 50); 637 $table->string('exten', 50);
573 $table->string('extencontext', 100); 638 $table->string('extencontext', 100);
574 $table->string('manager', 200); 639 $table->string('manager', 200);
640 $table->string('dialmode_assign', 20);
641 });
642
643 Schema::create('agent_notes', function(Blueprint $table) {
644 $table->bigIncrements('id');
645 $table->timestamps();
646 $table->integer('user_id');
647 $table->string('field_1', 100);
648 $table->string('field_2', 100);
649 $table->string('field_3', 100);
650 $table->string('field_4', 100);
651 $table->string('field_5', 100);
652 $table->string('field_6', 100);
653 $table->string('field_7', 100);
654 $table->string('field_8', 100);
655 $table->string('field_9', 100);
656 $table->string('field_10', 100);
657 $table->string('field_11', 100);
658 $table->string('field_12', 100);
659 $table->string('field_13', 100);
660 $table->string('field_14', 100);
661 $table->string('field_15', 100);
662 $table->string('field_16', 100);
663 $table->string('field_17', 100);
664 $table->string('field_18', 100);
665 $table->string('field_19', 100);
666 $table->string('field_20', 100);
667 $table->string('field_21', 100);
668 $table->string('field_22', 100);
669 $table->string('field_23', 100);
670 $table->string('field_24', 100);
671 $table->string('field_25', 100);
672 $table->string('field_26', 100);
673 $table->string('field_27', 100);
674 $table->string('field_28', 100);
675 $table->string('field_29', 100);
676 $table->string('field_30', 100);
677 $table->string('field_31', 100);
678 $table->string('field_32', 100);
679 $table->string('field_33', 100);
680 $table->string('field_34', 100);
681 $table->string('field_35', 100);
682 $table->string('field_36', 100);
683 $table->string('field_37', 100);
684 $table->string('field_38', 100);
685 $table->string('field_39', 100);
686 $table->string('field_40', 100);
687 $table->string('field_41', 100);
688 $table->string('field_42', 100);
689 $table->string('field_43', 100);
690 $table->string('field_44', 100);
691 $table->string('field_45', 100);
692 $table->string('field_46', 100);
693 $table->string('field_47', 100);
694 $table->string('field_48', 100);
695 $table->string('field_49', 100);
696 $table->string('field_50', 100);
697 });
698
699 Schema::create('full_remark', function(Blueprint $table) {
700 $table->bigIncrements('id');
701 $table->timestamps();
702 $table->integer('call_id')->index('call_id');
703 $table->string('fullremark', 5000);
575 }); 704 });
576 705
706 Schema::create('authentication_questions', function(Blueprint $table) {
707 $table->bigIncrements('id');
708 $table->timestamps();
709 $table->integer('question_no');
710 $table->integer('group_id');
711 $table->string('question', 200);
712 $table->string('opt_1', 100);
713 $table->string('opt_2', 100);
714 $table->string('opt_3', 100);
715 $table->string('opt_4', 100);
716 });
717
718 Schema::create('question', function(Blueprint $table) {
719 $table->bigIncrements('id');
720 $table->timestamps();
721 $table->integer('question_no');
722 $table->string('questions', 500);
723 $table->string('opt_1', 200);
724 $table->string('opt_2', 200);
725 $table->string('opt_3', 200);
726 $table->string('opt_4', 200);
727 $table->string('opt_5', 200);
728 $table->string('opt_6', 200);
729 $table->string('opt_7', 200);
730 $table->string('opt_8', 200);
731 $table->string('opt_9', 200);
732 $table->string('opt_10', 200);
733 $table->string('type', 100);
734 $table->string('compulsory_qes', 30);
735 });
736
737 Schema::create('question_tree', function(Blueprint $table) {
738 $table->bigIncrements('id');
739 $table->timestamps();
740 $table->integer('parent_id');
741 $table->string('parent_opt', 200);
742 $table->integer('question_id');
743 $table->integer('priority');
744 });
577 745
578 $server=Config::get("app.app_ip"); 746 $server=Config::get("app.app_ip");
579 747
...@@ -687,10 +855,9 @@ class FrameworkDbSchema extends Migration { ...@@ -687,10 +855,9 @@ class FrameworkDbSchema extends Migration {
687 855
688 \DB::table('sipids')->delete(); 856 \DB::table('sipids')->delete();
689 $cnt=0; 857 $cnt=0;
690 for($j=1;$j<=20;$j++) 858
691 {
692 $sipids=array(); 859 $sipids=array();
693 for($i=(($j*1000)+1);$i<=(($j*1000)+1000);$i++) 860 for($i=1;$i<=1000;$i++)
694 { 861 {
695 $sipids[$cnt++]=array( 862 $sipids[$cnt++]=array(
696 'id' => $i, 863 'id' => $i,
...@@ -705,7 +872,6 @@ class FrameworkDbSchema extends Migration { ...@@ -705,7 +872,6 @@ class FrameworkDbSchema extends Migration {
705 ); 872 );
706 } 873 }
707 \DB::table('sipids')->insert($sipids); 874 \DB::table('sipids')->insert($sipids);
708 }
709 875
710 876
711 \DB::table('users')->delete(); 877 \DB::table('users')->delete();
...@@ -714,7 +880,7 @@ class FrameworkDbSchema extends Migration { ...@@ -714,7 +880,7 @@ class FrameworkDbSchema extends Migration {
714 array ( 880 array (
715 'id' => 1, 881 'id' => 1,
716 'username' => 'admin', 882 'username' => 'admin',
717 'password' => '$2y$10$rMIU1gBhkyJ4eGSTLOzpJu8AcWDxqkh.P1VKtxxpyGI2uoYRrsyIq', 883 'password' => '$2y$10$3IMlygICC0e0A0yZpbes.OiWPg41e0r71MkUOLRbSH5bNPlFqOayS',
718 'fullname' => 'Admin', 884 'fullname' => 'Admin',
719 'email' => '[email protected]', 885 'email' => '[email protected]',
720 'status' => 'Active', 886 'status' => 'Active',
......
1 -- phpMyAdmin SQL Dump
2 -- version 4.5.3.1
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Apr 24, 2018 at 10:49 AM
7 -- Server version: 10.0.28-MariaDB
8 -- PHP Version: 5.6.29
9
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00";
12
13
14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 /*!40101 SET NAMES utf8mb4 */;
18
19 --
20 -- Database: `new_kstych_flexydial`
21 --
22
23 -- --------------------------------------------------------
24
25 --
26 -- Table structure for table `complaint_fields`
27 --
28
29 CREATE TABLE `complaint_fields` (
30 `id` bigint(20) NOT NULL,
31 `cust_band` varchar(5) NOT NULL,
32 `cust_type` varchar(50) NOT NULL,
33 `source_of_info` varchar(50) NOT NULL,
34 `service_type` varchar(50) NOT NULL,
35 `priority` varchar(10) NOT NULL,
36 `category` varchar(200) NOT NULL,
37 `sub_category` varchar(200) NOT NULL,
38 `resolving_branch` varchar(100) NOT NULL,
39 `cust_city` varchar(50) NOT NULL,
40 `acknowledge` varchar(10) NOT NULL,
41 `resolve_class_unit` varchar(50) NOT NULL,
42 `rbb` varchar(100) NOT NULL,
43 `non_rbb` varchar(100) NOT NULL,
44 `logging_branch_name` varchar(20) NOT NULL,
45 `logging_branch_code` varchar(20) NOT NULL,
46 `resolving_branch_code` int(20) NOT NULL,
47 `resolving_branch_w_code` varchar(200) NOT NULL,
48 `logging_branch_w_code` varchar(200) NOT NULL
49 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
50
51 --
52 -- Indexes for dumped tables
53 --
54
55 --
56 -- Indexes for table `complaint_fields`
57 --
58 ALTER TABLE `complaint_fields`
59 ADD PRIMARY KEY (`id`);
60
61 --
62 -- AUTO_INCREMENT for dumped tables
63 --
64
65 --
66 -- AUTO_INCREMENT for table `complaint_fields`
67 --
68 ALTER TABLE `complaint_fields`
69 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
70 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
71 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
72 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1 -- phpMyAdmin SQL Dump
2 -- version 4.5.3.1
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Apr 24, 2018 at 10:49 AM
7 -- Server version: 10.0.28-MariaDB
8 -- PHP Version: 5.6.29
9
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00";
12
13
14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 /*!40101 SET NAMES utf8mb4 */;
18
19 --
20 -- Database: `new_kstych_flexydial`
21 --
22
23 -- --------------------------------------------------------
24
25 --
26 -- Table structure for table `questionaire_details`
27 --
28
29 CREATE TABLE `questionaire_details` (
30 `id` bigint(10) NOT NULL,
31 `created_at` timestamp NULL DEFAULT NULL,
32 `updated_at` timestamp NULL DEFAULT NULL,
33 `user_id` varchar(10) NOT NULL,
34 `cust_id` varchar(20) NOT NULL,
35 `call_id` varchar(20) NOT NULL,
36 `name` varchar(50) NOT NULL,
37 `number` bigint(20) NOT NULL,
38 `question_time` timestamp NULL DEFAULT NULL,
39 `question` int(10) NOT NULL,
40 `primary_question` varchar(1500) NOT NULL,
41 `primary_response` varchar(500) NOT NULL,
42 `primary_text` varchar(500) NOT NULL,
43 `followup1_question` varchar(1500) NOT NULL,
44 `followup1_response` varchar(500) NOT NULL,
45 `followup1_text` varchar(500) NOT NULL,
46 `followup2_question` varchar(1500) NOT NULL,
47 `followup2_response` varchar(500) NOT NULL,
48 `followup2_text` varchar(500) NOT NULL,
49 `followup3_question` varchar(1500) NOT NULL,
50 `followup3_response` varchar(500) NOT NULL,
51 `followup3_text` varchar(500) NOT NULL,
52 `followup4_question` varchar(1500) NOT NULL,
53 `followup4_response` varchar(500) NOT NULL,
54 `followup4_text` varchar(500) NOT NULL,
55 `followup5_question` varchar(1500) NOT NULL,
56 `followup5_response` varchar(500) NOT NULL,
57 `followup5_text` varchar(500) NOT NULL,
58 `followup6_question` varchar(1500) NOT NULL,
59 `followup6_response` varchar(500) NOT NULL,
60 `followup6_text` varchar(500) NOT NULL,
61 `followup7_question` varchar(1500) NOT NULL,
62 `followup7_response` varchar(500) NOT NULL,
63 `followup7_text` varchar(500) NOT NULL
64 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
65
66 --
67 -- Indexes for dumped tables
68 --
69
70 --
71 -- Indexes for table `questionaire_details`
72 --
73 ALTER TABLE `questionaire_details`
74 ADD PRIMARY KEY (`id`);
75
76 --
77 -- AUTO_INCREMENT for dumped tables
78 --
79
80 --
81 -- AUTO_INCREMENT for table `questionaire_details`
82 --
83 ALTER TABLE `questionaire_details`
84 MODIFY `id` bigint(10) NOT NULL AUTO_INCREMENT;
85 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
86 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
87 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!