user-registration.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. <!-- <link rel="stylesheet" href="css/bootstrap-combined.min.css"> -->
  2. <link rel="stylesheet" type="text/css" href="module/report/user-registration/css/user-registration.css" />
  3. <section class="user_page container">
  4. <div class="sales_report">
  5. <div class="sales_report_in">
  6. <div class="sales_card">
  7. <div class="container-fluid table_area">
  8. <div class="row tab-head">
  9. <ul class="nav nav-tabs">
  10. <li ng-class="{active:obj.name == sideselect.name}" ng-repeat="obj in submenu track by $index">
  11. <a ng-click="listClick(obj)" data-toggle="tab" data-target="#menu{{$index}}" class="clsusersidemenu_{{$index}}">{{obj.name}}</a>
  12. </li>
  13. </ul>
  14. </div>
  15. <div ng-if="sideselect.id == 1">
  16. <div class="main_dropdown">
  17. <div class="zmdropdown">
  18. <label>Zonal Manager</label>
  19. <select ng-model="formData.zm_email" ng-change='zmChange()'>
  20. <option value="all">All</option>
  21. <option ng-repeat="zm in zmuser_list" value="{{zm.email}}">{{zm.name}}</option>
  22. </select>
  23. </div>
  24. <div class="rmdropdown" ng-if="!rmInactive">
  25. <label>Regional Manager</label>
  26. <select ng-model="formData.rm_email" ng-class="rmInactive ?'disabled':''" ng-change='rmChange()'>
  27. <option value="all">All</option>
  28. <option ng-repeat="rm in rmuser_list" value="{{rm.email}}">{{rm.name}}</option>
  29. </select>
  30. </div>
  31. <div class="amdropdown" ng-if="!amInactive">
  32. <label>Area Manager</label>
  33. <select ng-model="formData.am_email" ng-class="amInactive ?'disabled':''" ng-change='amChange()'>
  34. <option value="all">All</option>
  35. <option ng-repeat="am in amuser_list" value="{{am.email}}">{{am.name}}</option>
  36. </select>
  37. </div>
  38. </div>
  39. <div class="date_align">
  40. <div class="sear">
  41. <select style="float:left;margin: 0px;" class="filtertype" ng-model="formData.datetype" ng-change='dataFilter()'>
  42. <option value="4">All</option>
  43. <option value="1">Last Month</option>
  44. <option value="2">Last 3 Month </option>
  45. <option value="3">Last Quarter </option>
  46. <option value="0">Custom Date Range</option>
  47. </select>
  48. <span ng-if="formData.datetype==0">
  49. <label>From Date</label>
  50. <input type="text" id="fromdate" class="datepicker" name="fromdate" ng-model="formData.from_date" autocomplete="off" placeholder="Start Date"
  51. data-isblockdate="true" ng-reportpickermin>
  52. <label>To Date</label>
  53. <input type="text" id="todate" class="datepicker" name="todate" ng-model="formData.to_date" autocomplete="off" placeholder="End Date"
  54. data-isblockdate="true" ng-reportpickermin>
  55. <button class="btn export_update" ng-click="chartData()">
  56. <p>Go</p>
  57. </button>
  58. </span>
  59. </div>
  60. <div class="data_class1">
  61. <input type="checkbox" class="check_cls" ng-model="formData.regtype" ng-true-value="0" ng-false-value="1" ng-click="selectStatus($event)">
  62. <label class="lbl_font">Include Historical Data</label>
  63. <div class="download_export" ng-click="exportData()" ng-if="userPercentList.list.length>0">
  64. <img src="images/excel.png" alt="Export" title=" Export">
  65. <span>Export Report</span>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="filter-area">
  70. <!-- <div class="inner-container">
  71. <canvas id="registrationChart" width="900" height="450"></canvas>
  72. </div> -->
  73. <!-- <div class="box_chart">
  74. <h4>Total User Registrations</h4>
  75. <h2>{{userReport.total}}</h2>
  76. <p ng-if="formData.datetype==0">From {{formData.from_date}} to {{formData.to_date}}</p>
  77. </div> -->
  78. <div class="table_box">
  79. <div class="table-content table-fixed table-responsive">
  80. <table class="table table-striped">
  81. <thead>
  82. <tr class="row-name" ng-if="userPercentList.list.length>0">
  83. <th>Users</th>
  84. <th>Employee Count</th>
  85. <th>Registered Count</th>
  86. <th>Percentage</th>
  87. </tr>
  88. </thead>
  89. <tbody>
  90. <tr ng-if="userPercentList.list.length>0" class="row-content" ng-repeat="percentageList in userPercentList.list track by $index">
  91. <td>{{percentageList.name}}</td>
  92. <td>{{percentageList.emp_count}}</td>
  93. <td>{{percentageList.reg_count}}</td>
  94. <td>{{percentageList.percent}}%</td>
  95. </tr>
  96. </tbody>
  97. <tfoot ng-if="userPercentList.list.length>0">
  98. <tr class="row-foot">
  99. <th>Total</th>
  100. <th>{{userPercentList.total.emp_count}}</th>
  101. <th>{{userPercentList.total.reg_count}}</th>
  102. <th>{{userPercentList.total.percent}}%</th>
  103. </tr>
  104. </tbody>
  105. <div class="norecord" ng-if="userPercentList.length==0">
  106. No Records Found
  107. </div>
  108. </table>
  109. </div>
  110. <div class="download_export table_export" ng-click="exportTableData()" ng-if="userPercentList.list.length>0">
  111. <img src="images/excel.png" alt="Export" title=" Export">
  112. <span>Export table data</span>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div ng-if="sideselect.id == 2">
  118. <div class="main_dropdown active-rep">
  119. <div class="zmdropdown">
  120. <label>Zonal Manager</label>
  121. <select ng-model="formData.zm_email" ng-change='zmChange()'>
  122. <option value="all">All</option>
  123. <option ng-repeat="zm in zmuser_list" value="{{zm.email}}">{{zm.name}}</option>
  124. </select>
  125. </div>
  126. <div class="rmdropdown" ng-if="!rmInactive">
  127. <label>Regional Manager</label>
  128. <select ng-model="formData.rm_email" ng-class="rmInactive ?'disabled':''" ng-change='rmChange()'>
  129. <option value="all">All</option>
  130. <option ng-repeat="rm in rmuser_list" value="{{rm.email}}">{{rm.name}}</option>
  131. </select>
  132. </div>
  133. <div class="amdropdown" ng-if="!amInactive">
  134. <label>Area Manager</label>
  135. <select ng-model="formData.am_email" ng-class="amInactive ?'disabled':''" ng-change='amChange()'>
  136. <option value="all">All</option>
  137. <option ng-repeat="am in amuser_list" value="{{am.email}}">{{am.name}}</option>
  138. </select>
  139. </div>
  140. <!-- <div class="amdropdown role" ng-if="!dealerInactive">
  141. <label>Dealer</label>
  142. <select ng-model="formData.dealer_code" ng-class="dealerInactive ?'disabled':''"
  143. ng-change='dealerChange()'>
  144. <option value="all">All</option>
  145. <option ng-repeat="am in dealer_userlist" value="{{am.dealer_code}}">{{am.dealer_code}}-{{am.name}}</option>
  146. </select>
  147. </div> -->
  148. </div>
  149. <!-- <div class="date_align">
  150. <div class="inner-tab pull-left">
  151. <input type="checkbox" class="check_cls" ng-model="formData.regtype" ng-true-value="0" ng-false-value="1" ng-click="selectStatus()">
  152. <label class="lbl_font">Include Historical Data</label> -->
  153. <!-- <div class="btn-pref btn-group btn-group-justified btn-group-lg" role="group" aria-label="...">
  154. <div class="btn-group" role="group">
  155. <button type="button" id="stars" class="btn" ng-class="tabActive==1 ?'btn-primary':'btn-default'" ng-click="selectTab('1')"
  156. href="#tab1" data-toggle="tab">
  157. <div class="hidden-xs">Automatic</div>
  158. </button>
  159. </div>
  160. <div class="btn-group" role="group">
  161. <button type="button" id="favorites" class="btn" ng-class="tabActive==2 ?'btn-primary':'btn-default'" ng-click="selectTab('2')"
  162. href="#tab2" data-toggle="tab">
  163. <div class="hidden-xs">Manual</div>
  164. </button>
  165. </div>
  166. </div>
  167. </div>
  168. <label>From Date</label>
  169. <input type="text" id="fromdate" class="datepicker" name="fromdate" ng-model="formData.from_date" autocomplete="off" placeholder="Start Date"
  170. data-isblockdate="true" ng-reportpickermin>
  171. <label>To Date</label>
  172. <input type="text" id="todate" class="datepicker" name="todate" ng-model="formData.to_date" autocomplete="off" placeholder="End Date"
  173. data-isblockdate="true" ng-reportpickermin> -->
  174. <!-- <div class="data_class">
  175. <div class="pull-left">
  176. <label for="from">From</label>
  177. <input type="text" id="from" name="from" readonly="readonly" class="datepicker custom_month" ng-month-pick/>
  178. <label for="to">to</label>
  179. <input type="text" id="to" name="to" readonly="readonly" class="datepicker custom_month" ng-month-pick/>
  180. <button class="btn export_update" ng-click="activeData()">
  181. <p>Go</p>
  182. </button>
  183. </div>
  184. <div class="download_export" ng-click="exportData()">
  185. <img src="images/excel.png" alt="Export" title=" Export">
  186. <span>Export Report</span>
  187. </div>
  188. </div>
  189. </div>-->
  190. <div class="date_align">
  191. <div class="data_class1">
  192. <input type="checkbox" class="check_cls" ng-model="formData.regtype" ng-true-value="0" ng-false-value="1" ng-click="selectActiveStatus()">
  193. <label class="lbl_font">Include Historical Data</label>
  194. <div class="download_export" ng-click="exportData()">
  195. <img src="images/excel.png" alt="Export" title=" Export">
  196. <span>Export Report</span>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="filter-area">
  201. <!-- <div class="inner-container">
  202. <canvas id="registrationChart" width="900" height="450"></canvas>
  203. </div> -->
  204. <!-- <div class="box_chart">
  205. <h4>Total User Registrations</h4>
  206. <h2>{{userReport.total}}</h2>
  207. <p ng-if="formData.datetype==0">From {{formData.from_date}} to {{formData.to_date}}</p>
  208. </div> -->
  209. <div class="table_box">
  210. <div class="table-content table-fixed table-responsive">
  211. <table class="table table-striped">
  212. <thead>
  213. <tr class="row-name" ng-if="userPercentList.list.length>0">
  214. <th>Users</th>
  215. <th>Active count</th>
  216. <th>Inactive count</th>
  217. <th ng-if="dseInactive" >View Remarks</th>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr ng-if="userPercentList.list.length>0" class="row-content" ng-repeat="percentageList in userPercentList.list track by $index">
  222. <td>{{percentageList.name}}</td>
  223. <td>{{percentageList.active_count}}</td>
  224. <td>{{percentageList.inactive_count}}</td>
  225. <td ng-if="dseInactive">
  226. <div data-backdrop='static' data-toggle="modal" data-target="#myModal" class="editicon ion-eye ptr"
  227. title="View" ng-click="viewremarks(percentageList)"></div>
  228. <div class="modal fade myViewModal" id="myModal">
  229. <div class="modal-dialog modal-lg">
  230. <div class="modal-content">
  231. <div class="modal-header">
  232. <button type="button" class="close" ng-click="modal_dismiss()">&times;</button>
  233. </div>
  234. <div class="modal-body model_left">
  235. <div class="table-fixed">
  236. <table class="table table-striped">
  237. <thead>
  238. <tr>
  239. <th>Remarks</th>
  240. </tr>
  241. </thead>
  242. <tbody>
  243. <tr ng-if="remarkslist.length>0" ng-repeat="rm in remarkslist track by $index">
  244. <td>{{rm.remarks}}</td>
  245. </tr>
  246. </tbody>
  247. </table>
  248. </div>
  249. <div class="row">
  250. <nav aria-label="Page navigation" id="div1">
  251. <!-- <ul class="pagination pager" uib-pagination total-items="totalItems" ng-model="currentPage" ng-change="pageChanged(currentPage)" max-size="maxSize" boundary-links="true" rotate="false" num-pages="numPages" items-per-page="itemsPerPage"></ul> -->
  252. <ul class="pagination pager" uib-pagination total-items="totalItems" ng-model="currentPage"
  253. ng-change="pageChanged(currentPage)" max-size="maxSize" boundary-links="true" rotate="false"
  254. num-pages="numPages" items-per-page="itemsPerPage"></ul>
  255. </nav>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. </td>
  262. </tr>
  263. </tbody>
  264. <tfoot ng-if="userPercentList.list.length>0">
  265. <tr class="row-foot">
  266. <th>Total</th>
  267. <th>{{userPercentList.total.active_count}}</th>
  268. <th>{{userPercentList.total.inactive_count}}</th>
  269. <th ng-if="dseInactive"></th>
  270. </tr>
  271. </tbody>
  272. <div class="norecord" ng-if="userPercentList.length==0">
  273. No Records Found
  274. </div>
  275. </table>
  276. </div>
  277. <div class="download_export table_export" ng-click="exportTableData()" ng-if="userPercentList.list.length>0">
  278. <img src="images/excel.png" alt="Export" title=" Export">
  279. <span>Export table data</span>
  280. </div>
  281. </div>
  282. </div>
  283. <!-- <div class="filter-area">
  284. <div class="tab-content">
  285. <div class="tab-pane fade" ng-class="tabActive==1 ?'active in':''" id="tab1">
  286. <div class="box_chart">
  287. <div class="total-item">
  288. <p>Initiated Users
  289. <span>({{userActiveReport.total.inital}})</span>
  290. </p>
  291. </div>
  292. <div class="total-item">
  293. <p>Active Users
  294. <span>({{userActiveReport.total.active}})</span>
  295. </p>
  296. </div>
  297. <div class="total-item">
  298. <p>Inactive Users
  299. <span>({{userActiveReport.total.inactive}})</span>
  300. </p>
  301. </div>
  302. <p>From {{formData.fromDate}} to {{formData.toDate}}</p>
  303. </div>
  304. </div>
  305. <div class="tab-pane fade" ng-class="tabActive==2 ?'active in':''" id="tab2">
  306. Manual
  307. <div class="inner-container2">
  308. <canvas id="statusChart2" width="300" height="300"></canvas>
  309. </div>
  310. <div class="box_chart">
  311. <div class="total-item">
  312. <p>Initiated Users
  313. <span>({{userActiveReport.total.inital}})</span>
  314. </p>
  315. </div>
  316. <div class="total-item">
  317. <p>Active Users
  318. <span>({{userActiveReport.total.active}})</span>
  319. </p>
  320. </div>
  321. <div class="total-item">
  322. <p>Inactive Users
  323. <span>({{userActiveReport.total.inactive}})</span>
  324. </p>
  325. </div>
  326. <p>From {{formData.fromDate}} to {{formData.toDate}}</p>
  327. </div>
  328. </div>
  329. </div>
  330. </div> -->
  331. </div>
  332. <div ng-if="sideselect.id == 3">
  333. <div class="main_dropdown">
  334. <div class="zmdropdown">
  335. <label>Zonal Manager</label>
  336. <select ng-model="formData.zm_email" ng-change='zmChange()'>
  337. <option value="all">All</option>
  338. <option ng-repeat="zm in zmuser_list" value="{{zm.email}}">{{zm.name}}</option>
  339. </select>
  340. </div>
  341. <div class="rmdropdown" ng-if="!rmInactive">
  342. <label>Regional Manager</label>
  343. <select ng-model="formData.rm_email" ng-class="rmInactive ?'disabled':''" ng-change='rmChange()'>
  344. <option value="all">All</option>
  345. <option ng-repeat="rm in rmuser_list" value="{{rm.email}}">{{rm.name}}</option>
  346. </select>
  347. </div>
  348. <div class="amdropdown" ng-if="!amInactive">
  349. <label>Area Manager</label>
  350. <select ng-model="formData.am_email" ng-class="amInactive ?'disabled':''" ng-change='amChange()'>
  351. <option value="all">All</option>
  352. <option ng-repeat="am in amuser_list" value="{{am.email}}">{{am.name}}</option>
  353. </select>
  354. </div>
  355. </div>
  356. <div class="date_align">
  357. <div class="sear">
  358. <form class="form_2">
  359. <div class="form-group col-sm-12 disable">
  360. <input type="search" ng-change="onSearchChange()" class="form-control" ng-model="formData.mymodel" name="Search" placeholder="Search"
  361. autocomplete="off" required>
  362. </div>
  363. </form>
  364. </div>
  365. <div class="data_class1">
  366. <input type="checkbox" class="check_cls" ng-model="formData.regtype" ng-true-value="0" ng-false-value="1" ng-click="selectInActiveStatus()">
  367. <label class="lbl_font">Include Historical Data</label>
  368. <div class="download_export" ng-click="exportData()">
  369. <img src="images/excel.png" alt="Export" title=" Export">
  370. <span>Export Report</span>
  371. </div>
  372. </div>
  373. </div>
  374. <div class="filter-area">
  375. <!-- <div class="box_chart">
  376. <h4>Total User Registrations</h4>
  377. <h2>{{userReport.total}}</h2>
  378. <p ng-if="formData.datetype==0">From {{formData.from_date}} to {{formData.to_date}}</p>
  379. </div> -->
  380. <div class="table_box">
  381. <div class="table-content table-fixed table-responsive">
  382. <table class="table table-striped">
  383. <thead>
  384. <tr class="row-name">
  385. <th>Name</th>
  386. <th>Employee ID</th>
  387. <th>Mobile No</th>
  388. <th>Dealer Name</th>
  389. <th>Dealer Code</th>
  390. <th>Action</th>
  391. </tr>
  392. </thead>
  393. <tbody>
  394. <tr class="norecord" ng-if="userPercentList.report.length==0">
  395. <td colspan="6">No Records Found</td>
  396. </tr>
  397. <tr ng-if="userPercentList.report.length>0" class="row-content" ng-repeat="percentageList in userPercentList.report track by $index">
  398. <td>{{percentageList.fname}} </td>
  399. <td>{{percentageList.smpin}}</td>
  400. <td>{{percentageList.mobileno}}</td>
  401. <td>{{percentageList.dealer_name}}</td>
  402. <td>{{percentageList.dealer_code}}</td>
  403. <td>
  404. <div data-backdrop='static' ng-click="viewdetails(percentageList.userid)" class="active_user"><a href="JavaScript:void(0);">Active</a></div>
  405. <!-- <div data-backdrop='static' data-toggle="modal" data-target="#myModal" ng-click="viewdetails(percentageList.userid)" class="editicon ion-checkmark ptr"
  406. title="View"></div> -->
  407. <!-- <div class="modal fade myViewModal" id="myModal">
  408. <div class="modal-dialog">
  409. <div class="modal-content">
  410. <div class="modal-header">
  411. <h4 class="modal-title">
  412. <b class="font_14">Name: </b>{{particularData.salutation}}.{{particularData.firstname}} {{particularData.lastname}}</h4>
  413. <button type="button" class="close" data-dismiss="modal">&times;</button>
  414. </div>
  415. <div class="modal-body model_left">
  416. <div class="table-content table-fixed">
  417. <table class="table table-striped">
  418. <thead>
  419. <tr class="row-name" ng-if="userFeedbackDataReport.length>0">
  420. <th>S.No</th>
  421. <th>Question</th>
  422. <th>Rating</th>
  423. </tr>
  424. </thead>
  425. <tbody>
  426. <tr ng-if="userFeedbackDataReport.length>0" class="row-content" ng-repeat="userFeedbackData in userFeedbackDataReport track by $index">
  427. <td>{{itemsPerPage *(currentPage-1)+$index+1}}</td>
  428. <td>{{userFeedbackData.questiontext}}</td>
  429. <td>{{userFeedbackData.survey_rating}}</td>
  430. </tr>
  431. </tbody>
  432. </table>
  433. </div>
  434. </div>
  435. <div class="modal-footer">
  436. <nav aria-label="Page navigation" id="div" ng-if="contentViewValueReport.length>0">
  437. <div class="download_export insidemodal" ng-click="exportTableData('0',contentValueReport[0].assettopicid)">
  438. <img src="images/excel.png" alt="Export" title=" Export">
  439. <span>Export Report</span>
  440. </div>
  441. <ul class="pagination-sm" uib-pagination total-items="totalItems" ng-model="currentPage" ng-change="pageChanged(currentPage)" max-size="maxSize" boundary-links="true" rotate="true" num-pages="numPages" items-per-page="itemsPerPage"></ul>
  442. </nav>
  443. <div ng-if="contentViewValueReport.length==0" class="no_report">
  444. <p>No records Found</p>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. </div> -->
  450. </td>
  451. </tr>
  452. </tbody>
  453. <tfoot ng-if="userPercentList.report.length>0">
  454. <tr class="row-foot">
  455. <th>Total Records</th>
  456. <th></th>
  457. <th></th>
  458. <th></th>
  459. <th>{{userPercentList.total_records}}</th>
  460. <th></th>
  461. </tr>
  462. </tbody>
  463. </table>
  464. </div>
  465. <div class="container">
  466. </div>
  467. <!-- <div class="download_export table_export" ng-click="exportTableData()" ng-if="userPercentList.report.length>0">
  468. <img src="images/excel.png" alt="Export" title=" Export">
  469. <span>Export table data</span>
  470. </div> -->
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. </section>