<?php namespace PHPMaker2020\project2; ?>
<?php

/**
 * Table class for kt_driver_task
 */
class kt_driver_task extends DbTable
{
	protected $SqlFrom = "";
	protected $SqlSelect = "";
	protected $SqlSelectList = "";
	protected $SqlWhere = "";
	protected $SqlGroupBy = "";
	protected $SqlHaving = "";
	protected $SqlOrderBy = "";
	public $UseSessionForListSql = TRUE;

	// Column CSS classes
	public $LeftColumnClass = "col-sm-2 col-form-label ew-label";
	public $RightColumnClass = "col-sm-10";
	public $OffsetColumnClass = "col-sm-10 offset-sm-2";
	public $TableLeftColumnClass = "w-col-2";

	// Export
	public $ExportDoc;

	// Fields
	public $task_id;
	public $task_description;
	public $trans_type;
	public $contact_number;
	public $email_address;
	public $customer_name;
	public $delivery_date;
	public $delivery_address;
	public $team_id;
	public $driver_id;
	public $task_lat;
	public $task_lng;
	public $customer_signature;
	public $date_created;
	public $date_modified;
	public $ip_address;
	public $auto_assign_type;
	public $assign_started;
	public $assignment_status;
	public $dropoff_contact_name;
	public $dropoff_contact_number;
	public $drop_address;
	public $dropoff_task_lat;
	public $dropoff_task_lng;
	public $task_token;
	public $ratings;
	public $rating_comment;
	public $critical;
	public $souce_e;
	public $shop_code_e;
	public $Received_Channel_e;
	public $PayMethod_e;
	public $Type_e;
	public $Request_Code_e;
	public $Status_e;
	public $PlanType_e;
	public $Plan_e;
	public $Isdn_e;
	public $serial_sim_handset_e;
	public $handset_e;
	public $Connect_Reason_e;
	public $Price_e;
	public $Current_Operator_e;
	public $Current_Plan_Type_e;
	public $Document_Number_e;
	public $Document_Type_e;
	public $assignStaffCode_e;
	public $Delivery_Type_e;
	public $assignStaffType_e;
	public $receiveStaffCode_e;
	public $receiveStaffType_e;
	public $connectStaffCode_e;
	public $connectStaffType_e;
	public $shopName_e;
	public $saleOrderCode_e;
	public $consultantCode_e;
	public $consultantName_e;
	public $consultantType_e;
	public $created_By_e;
	public $createdBranch_e;
	public $generated_Code_By_e;
	public $approve_Paid_By_e;
	public $Delivery_Note_e;
	public $Delivery_Code_e;
	public $Customer_Note_e;
	public $saleOrderCreateDate_e;
	public $saleOrderPayDate_e;
	public $Time_of_Procesing_e;
	public $Time_of_new_e;
	public $Time_of_Finished_e;
	public $KPI_CC_Hour_e;
	public $KPI_NEW_Hour_e;
	public $KPI_PROCESING_Hour_e;
	public $KPI_ALL_Hour_e;
	public $Kpi_Register_Hour_e;
	public $Kpi_Bitel_Hour_e;
	public $AmountGB_e;
	public $Price_1_e;
	public $Status_1_e;
	public $Registered_Date_e;
	public $Sumary_e;
	public $Plans_e;
	public $Isdns_e;
	public $PlanTypes_e;
	public $Serials_e;
	public $Status_2_e;
	public $Registered_Date_2_e;
	public $Summary_2_e;
	public $serial_2_e;
	public $HandsetCode_e;
	public $HandsetName_e;
	public $Status_3_e;
	public $Summary_3_e;
	public $fecha_activa_e;
	public $mes_activa_e;
	public $SOURCE_OUT_e;
	public $fecha_crea_e;
	public $mes_crea_e;
	public $moto_e;
	public $customer_id;
	public $status;
	public $address_e;
	public $branch_e;
	public $CreatedTime_e;
	public $Status_n;

	// Constructor
	public function __construct()
	{
		global $Language, $CurrentLanguage;
		parent::__construct();

		// Language object
		if (!isset($Language))
			$Language = new Language();
		$this->TableVar = 'kt_driver_task';
		$this->TableName = 'kt_driver_task';
		$this->TableType = 'TABLE';

		// Update Table
		$this->UpdateTable = "`kt_driver_task`";
		$this->Dbid = 'DB';
		$this->ExportAll = TRUE;
		$this->ExportPageBreakCount = 0; // Page break per every n record (PDF only)
		$this->ExportPageOrientation = "portrait"; // Page orientation (PDF only)
		$this->ExportPageSize = "a4"; // Page size (PDF only)
		$this->ExportExcelPageOrientation = ""; // Page orientation (PhpSpreadsheet only)
		$this->ExportExcelPageSize = ""; // Page size (PhpSpreadsheet only)
		$this->ExportWordPageOrientation = "portrait"; // Page orientation (PHPWord only)
		$this->ExportWordColumnWidth = NULL; // Cell width (PHPWord only)
		$this->DetailAdd = FALSE; // Allow detail add
		$this->DetailEdit = FALSE; // Allow detail edit
		$this->DetailView = FALSE; // Allow detail view
		$this->ShowMultipleDetails = FALSE; // Show multiple details
		$this->GridAddRowCount = 5;
		$this->AllowAddDeleteRow = TRUE; // Allow add/delete row
		$this->UserIDAllowSecurity = 0; // User ID Allow
		$this->BasicSearch = new BasicSearch($this->TableVar);

		// task_id
		$this->task_id = new DbField('kt_driver_task', 'kt_driver_task', 'x_task_id', 'task_id', '`task_id`', '`task_id`', 3, 11, -1, FALSE, '`task_id`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'NO');
		$this->task_id->IsAutoIncrement = TRUE; // Autoincrement field
		$this->task_id->IsPrimaryKey = TRUE; // Primary key field
		$this->task_id->Sortable = TRUE; // Allow sort
		$this->task_id->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['task_id'] = &$this->task_id;

		// task_description
		$this->task_description = new DbField('kt_driver_task', 'kt_driver_task', 'x_task_description', 'task_description', '`task_description`', '`task_description`', 200, 255, -1, FALSE, '`task_description`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->task_description->Sortable = TRUE; // Allow sort
		$this->fields['task_description'] = &$this->task_description;

		// trans_type
		$this->trans_type = new DbField('kt_driver_task', 'kt_driver_task', 'x_trans_type', 'trans_type', '`trans_type`', '`trans_type`', 200, 255, -1, FALSE, '`trans_type`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->trans_type->Sortable = TRUE; // Allow sort
		$this->fields['trans_type'] = &$this->trans_type;

		// contact_number
		$this->contact_number = new DbField('kt_driver_task', 'kt_driver_task', 'x_contact_number', 'contact_number', '`contact_number`', '`contact_number`', 200, 50, -1, FALSE, '`contact_number`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->contact_number->Sortable = TRUE; // Allow sort
		$this->fields['contact_number'] = &$this->contact_number;

		// email_address
		$this->email_address = new DbField('kt_driver_task', 'kt_driver_task', 'x_email_address', 'email_address', '`email_address`', '`email_address`', 200, 200, -1, FALSE, '`email_address`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->email_address->Sortable = TRUE; // Allow sort
		$this->fields['email_address'] = &$this->email_address;

		// customer_name
		$this->customer_name = new DbField('kt_driver_task', 'kt_driver_task', 'x_customer_name', 'customer_name', '`customer_name`', '`customer_name`', 200, 255, -1, FALSE, '`customer_name`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->customer_name->Sortable = TRUE; // Allow sort
		$this->fields['customer_name'] = &$this->customer_name;

		// delivery_date
		$this->delivery_date = new DbField('kt_driver_task', 'kt_driver_task', 'x_delivery_date', 'delivery_date', '`delivery_date`', CastDateFieldForLike("`delivery_date`", 0, "DB"), 135, 19, 0, FALSE, '`delivery_date`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->delivery_date->Sortable = TRUE; // Allow sort
		$this->delivery_date->DefaultErrorMessage = str_replace("%s", $GLOBALS["DATE_FORMAT"], $Language->phrase("IncorrectDate"));
		$this->fields['delivery_date'] = &$this->delivery_date;

		// delivery_address
		$this->delivery_address = new DbField('kt_driver_task', 'kt_driver_task', 'x_delivery_address', 'delivery_address', '`delivery_address`', '`delivery_address`', 201, 65535, -1, FALSE, '`delivery_address`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXTAREA');
		$this->delivery_address->Sortable = TRUE; // Allow sort
		$this->fields['delivery_address'] = &$this->delivery_address;

		// team_id
		$this->team_id = new DbField('kt_driver_task', 'kt_driver_task', 'x_team_id', 'team_id', '`team_id`', '`team_id`', 3, 11, -1, FALSE, '`team_id`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->team_id->Sortable = TRUE; // Allow sort
		$this->team_id->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['team_id'] = &$this->team_id;

		// driver_id
		$this->driver_id = new DbField('kt_driver_task', 'kt_driver_task', 'x_driver_id', 'driver_id', '`driver_id`', '`driver_id`', 3, 11, -1, FALSE, '`driver_id`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->driver_id->Sortable = TRUE; // Allow sort
		$this->driver_id->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['driver_id'] = &$this->driver_id;

		// task_lat
		$this->task_lat = new DbField('kt_driver_task', 'kt_driver_task', 'x_task_lat', 'task_lat', '`task_lat`', '`task_lat`', 200, 50, -1, FALSE, '`task_lat`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->task_lat->Sortable = TRUE; // Allow sort
		$this->fields['task_lat'] = &$this->task_lat;

		// task_lng
		$this->task_lng = new DbField('kt_driver_task', 'kt_driver_task', 'x_task_lng', 'task_lng', '`task_lng`', '`task_lng`', 200, 50, -1, FALSE, '`task_lng`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->task_lng->Sortable = TRUE; // Allow sort
		$this->fields['task_lng'] = &$this->task_lng;

		// customer_signature
		$this->customer_signature = new DbField('kt_driver_task', 'kt_driver_task', 'x_customer_signature', 'customer_signature', '`customer_signature`', '`customer_signature`', 200, 255, -1, FALSE, '`customer_signature`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->customer_signature->Sortable = TRUE; // Allow sort
		$this->fields['customer_signature'] = &$this->customer_signature;

		// date_created
		$this->date_created = new DbField('kt_driver_task', 'kt_driver_task', 'x_date_created', 'date_created', '`date_created`', CastDateFieldForLike("`date_created`", 0, "DB"), 135, 19, 0, FALSE, '`date_created`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->date_created->Sortable = TRUE; // Allow sort
		$this->date_created->DefaultErrorMessage = str_replace("%s", $GLOBALS["DATE_FORMAT"], $Language->phrase("IncorrectDate"));
		$this->fields['date_created'] = &$this->date_created;

		// date_modified
		$this->date_modified = new DbField('kt_driver_task', 'kt_driver_task', 'x_date_modified', 'date_modified', '`date_modified`', CastDateFieldForLike("`date_modified`", 0, "DB"), 135, 19, 0, FALSE, '`date_modified`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->date_modified->Sortable = TRUE; // Allow sort
		$this->date_modified->DefaultErrorMessage = str_replace("%s", $GLOBALS["DATE_FORMAT"], $Language->phrase("IncorrectDate"));
		$this->fields['date_modified'] = &$this->date_modified;

		// ip_address
		$this->ip_address = new DbField('kt_driver_task', 'kt_driver_task', 'x_ip_address', 'ip_address', '`ip_address`', '`ip_address`', 200, 50, -1, FALSE, '`ip_address`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->ip_address->Sortable = TRUE; // Allow sort
		$this->fields['ip_address'] = &$this->ip_address;

		// auto_assign_type
		$this->auto_assign_type = new DbField('kt_driver_task', 'kt_driver_task', 'x_auto_assign_type', 'auto_assign_type', '`auto_assign_type`', '`auto_assign_type`', 200, 50, -1, FALSE, '`auto_assign_type`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->auto_assign_type->Sortable = TRUE; // Allow sort
		$this->fields['auto_assign_type'] = &$this->auto_assign_type;

		// assign_started
		$this->assign_started = new DbField('kt_driver_task', 'kt_driver_task', 'x_assign_started', 'assign_started', '`assign_started`', CastDateFieldForLike("`assign_started`", 0, "DB"), 135, 19, 0, FALSE, '`assign_started`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->assign_started->Sortable = TRUE; // Allow sort
		$this->assign_started->DefaultErrorMessage = str_replace("%s", $GLOBALS["DATE_FORMAT"], $Language->phrase("IncorrectDate"));
		$this->fields['assign_started'] = &$this->assign_started;

		// assignment_status
		$this->assignment_status = new DbField('kt_driver_task', 'kt_driver_task', 'x_assignment_status', 'assignment_status', '`assignment_status`', '`assignment_status`', 200, 255, -1, FALSE, '`assignment_status`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->assignment_status->Sortable = TRUE; // Allow sort
		$this->fields['assignment_status'] = &$this->assignment_status;

		// dropoff_contact_name
		$this->dropoff_contact_name = new DbField('kt_driver_task', 'kt_driver_task', 'x_dropoff_contact_name', 'dropoff_contact_name', '`dropoff_contact_name`', '`dropoff_contact_name`', 200, 255, -1, FALSE, '`dropoff_contact_name`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->dropoff_contact_name->Sortable = TRUE; // Allow sort
		$this->fields['dropoff_contact_name'] = &$this->dropoff_contact_name;

		// dropoff_contact_number
		$this->dropoff_contact_number = new DbField('kt_driver_task', 'kt_driver_task', 'x_dropoff_contact_number', 'dropoff_contact_number', '`dropoff_contact_number`', '`dropoff_contact_number`', 200, 50, -1, FALSE, '`dropoff_contact_number`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->dropoff_contact_number->Sortable = TRUE; // Allow sort
		$this->fields['dropoff_contact_number'] = &$this->dropoff_contact_number;

		// drop_address
		$this->drop_address = new DbField('kt_driver_task', 'kt_driver_task', 'x_drop_address', 'drop_address', '`drop_address`', '`drop_address`', 200, 255, -1, FALSE, '`drop_address`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->drop_address->Sortable = TRUE; // Allow sort
		$this->fields['drop_address'] = &$this->drop_address;

		// dropoff_task_lat
		$this->dropoff_task_lat = new DbField('kt_driver_task', 'kt_driver_task', 'x_dropoff_task_lat', 'dropoff_task_lat', '`dropoff_task_lat`', '`dropoff_task_lat`', 200, 50, -1, FALSE, '`dropoff_task_lat`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->dropoff_task_lat->Sortable = TRUE; // Allow sort
		$this->fields['dropoff_task_lat'] = &$this->dropoff_task_lat;

		// dropoff_task_lng
		$this->dropoff_task_lng = new DbField('kt_driver_task', 'kt_driver_task', 'x_dropoff_task_lng', 'dropoff_task_lng', '`dropoff_task_lng`', '`dropoff_task_lng`', 200, 50, -1, FALSE, '`dropoff_task_lng`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->dropoff_task_lng->Sortable = TRUE; // Allow sort
		$this->fields['dropoff_task_lng'] = &$this->dropoff_task_lng;

		// task_token
		$this->task_token = new DbField('kt_driver_task', 'kt_driver_task', 'x_task_token', 'task_token', '`task_token`', '`task_token`', 200, 255, -1, FALSE, '`task_token`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->task_token->Sortable = TRUE; // Allow sort
		$this->fields['task_token'] = &$this->task_token;

		// ratings
		$this->ratings = new DbField('kt_driver_task', 'kt_driver_task', 'x_ratings', 'ratings', '`ratings`', '`ratings`', 200, 14, -1, FALSE, '`ratings`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->ratings->Sortable = TRUE; // Allow sort
		$this->fields['ratings'] = &$this->ratings;

		// rating_comment
		$this->rating_comment = new DbField('kt_driver_task', 'kt_driver_task', 'x_rating_comment', 'rating_comment', '`rating_comment`', '`rating_comment`', 200, 255, -1, FALSE, '`rating_comment`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->rating_comment->Sortable = TRUE; // Allow sort
		$this->fields['rating_comment'] = &$this->rating_comment;

		// critical
		$this->critical = new DbField('kt_driver_task', 'kt_driver_task', 'x_critical', 'critical', '`critical`', '`critical`', 3, 11, -1, FALSE, '`critical`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->critical->Sortable = TRUE; // Allow sort
		$this->critical->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['critical'] = &$this->critical;

		// souce_e
		$this->souce_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_souce_e', 'souce_e', '`souce_e`', '`souce_e`', 200, 200, -1, FALSE, '`souce_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->souce_e->Sortable = TRUE; // Allow sort
		$this->fields['souce_e'] = &$this->souce_e;

		// shop_code_e
		$this->shop_code_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_shop_code_e', 'shop_code_e', '`shop_code_e`', '`shop_code_e`', 200, 200, -1, FALSE, '`shop_code_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->shop_code_e->Sortable = TRUE; // Allow sort
		$this->fields['shop_code_e'] = &$this->shop_code_e;

		// Received_Channel_e
		$this->Received_Channel_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Received_Channel_e', 'Received_Channel_e', '`Received_Channel_e`', '`Received_Channel_e`', 200, 200, -1, FALSE, '`Received_Channel_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Received_Channel_e->Sortable = TRUE; // Allow sort
		$this->fields['Received_Channel_e'] = &$this->Received_Channel_e;

		// PayMethod_e
		$this->PayMethod_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_PayMethod_e', 'PayMethod_e', '`PayMethod_e`', '`PayMethod_e`', 200, 200, -1, FALSE, '`PayMethod_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->PayMethod_e->Sortable = TRUE; // Allow sort
		$this->fields['PayMethod_e'] = &$this->PayMethod_e;

		// Type_e
		$this->Type_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Type_e', 'Type_e', '`Type_e`', '`Type_e`', 200, 100, -1, FALSE, '`Type_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Type_e->Sortable = TRUE; // Allow sort
		$this->fields['Type_e'] = &$this->Type_e;

		// Request_Code_e
		$this->Request_Code_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Request_Code_e', 'Request_Code_e', '`Request_Code_e`', '`Request_Code_e`', 200, 200, -1, FALSE, '`Request_Code_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Request_Code_e->Sortable = TRUE; // Allow sort
		$this->fields['Request_Code_e'] = &$this->Request_Code_e;

		// Status_e
		$this->Status_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Status_e', 'Status_e', '`Status_e`', '`Status_e`', 200, 100, -1, FALSE, '`Status_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Status_e->Sortable = TRUE; // Allow sort
		$this->fields['Status_e'] = &$this->Status_e;

		// PlanType_e
		$this->PlanType_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_PlanType_e', 'PlanType_e', '`PlanType_e`', '`PlanType_e`', 200, 100, -1, FALSE, '`PlanType_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->PlanType_e->Sortable = TRUE; // Allow sort
		$this->fields['PlanType_e'] = &$this->PlanType_e;

		// Plan_e
		$this->Plan_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Plan_e', 'Plan_e', '`Plan_e`', '`Plan_e`', 200, 100, -1, FALSE, '`Plan_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Plan_e->Sortable = TRUE; // Allow sort
		$this->fields['Plan_e'] = &$this->Plan_e;

		// Isdn_e
		$this->Isdn_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Isdn_e', 'Isdn_e', '`Isdn_e`', '`Isdn_e`', 200, 150, -1, FALSE, '`Isdn_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Isdn_e->Sortable = TRUE; // Allow sort
		$this->fields['Isdn_e'] = &$this->Isdn_e;

		// serial_sim_handset_e
		$this->serial_sim_handset_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_serial_sim_handset_e', 'serial_sim_handset_e', '`serial_sim_handset_e`', '`serial_sim_handset_e`', 200, 200, -1, FALSE, '`serial_sim_handset_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->serial_sim_handset_e->Sortable = TRUE; // Allow sort
		$this->fields['serial_sim_handset_e'] = &$this->serial_sim_handset_e;

		// handset_e
		$this->handset_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_handset_e', 'handset_e', '`handset_e`', '`handset_e`', 200, 100, -1, FALSE, '`handset_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->handset_e->Sortable = TRUE; // Allow sort
		$this->fields['handset_e'] = &$this->handset_e;

		// Connect_Reason_e
		$this->Connect_Reason_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Connect_Reason_e', 'Connect_Reason_e', '`Connect_Reason_e`', '`Connect_Reason_e`', 200, 200, -1, FALSE, '`Connect_Reason_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Connect_Reason_e->Sortable = TRUE; // Allow sort
		$this->fields['Connect_Reason_e'] = &$this->Connect_Reason_e;

		// Price_e
		$this->Price_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Price_e', 'Price_e', '`Price_e`', '`Price_e`', 131, 10, -1, FALSE, '`Price_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Price_e->Sortable = TRUE; // Allow sort
		$this->Price_e->DefaultErrorMessage = $Language->phrase("IncorrectFloat");
		$this->fields['Price_e'] = &$this->Price_e;

		// Current_Operator_e
		$this->Current_Operator_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Current_Operator_e', 'Current_Operator_e', '`Current_Operator_e`', '`Current_Operator_e`', 200, 200, -1, FALSE, '`Current_Operator_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Current_Operator_e->Sortable = TRUE; // Allow sort
		$this->fields['Current_Operator_e'] = &$this->Current_Operator_e;

		// Current_Plan_Type_e
		$this->Current_Plan_Type_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Current_Plan_Type_e', 'Current_Plan_Type_e', '`Current_Plan_Type_e`', '`Current_Plan_Type_e`', 200, 200, -1, FALSE, '`Current_Plan_Type_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Current_Plan_Type_e->Sortable = TRUE; // Allow sort
		$this->fields['Current_Plan_Type_e'] = &$this->Current_Plan_Type_e;

		// Document_Number_e
		$this->Document_Number_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Document_Number_e', 'Document_Number_e', '`Document_Number_e`', '`Document_Number_e`', 200, 200, -1, FALSE, '`Document_Number_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Document_Number_e->Sortable = TRUE; // Allow sort
		$this->fields['Document_Number_e'] = &$this->Document_Number_e;

		// Document_Type_e
		$this->Document_Type_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Document_Type_e', 'Document_Type_e', '`Document_Type_e`', '`Document_Type_e`', 200, 200, -1, FALSE, '`Document_Type_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Document_Type_e->Sortable = TRUE; // Allow sort
		$this->fields['Document_Type_e'] = &$this->Document_Type_e;

		// assignStaffCode_e
		$this->assignStaffCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_assignStaffCode_e', 'assignStaffCode_e', '`assignStaffCode_e`', '`assignStaffCode_e`', 200, 100, -1, FALSE, '`assignStaffCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->assignStaffCode_e->Sortable = TRUE; // Allow sort
		$this->fields['assignStaffCode_e'] = &$this->assignStaffCode_e;

		// Delivery_Type_e
		$this->Delivery_Type_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Delivery_Type_e', 'Delivery_Type_e', '`Delivery_Type_e`', '`Delivery_Type_e`', 200, 100, -1, FALSE, '`Delivery_Type_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Delivery_Type_e->Sortable = TRUE; // Allow sort
		$this->fields['Delivery_Type_e'] = &$this->Delivery_Type_e;

		// assignStaffType_e
		$this->assignStaffType_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_assignStaffType_e', 'assignStaffType_e', '`assignStaffType_e`', '`assignStaffType_e`', 200, 200, -1, FALSE, '`assignStaffType_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->assignStaffType_e->Sortable = TRUE; // Allow sort
		$this->fields['assignStaffType_e'] = &$this->assignStaffType_e;

		// receiveStaffCode_e
		$this->receiveStaffCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_receiveStaffCode_e', 'receiveStaffCode_e', '`receiveStaffCode_e`', '`receiveStaffCode_e`', 200, 100, -1, FALSE, '`receiveStaffCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->receiveStaffCode_e->Sortable = TRUE; // Allow sort
		$this->fields['receiveStaffCode_e'] = &$this->receiveStaffCode_e;

		// receiveStaffType_e
		$this->receiveStaffType_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_receiveStaffType_e', 'receiveStaffType_e', '`receiveStaffType_e`', '`receiveStaffType_e`', 200, 100, -1, FALSE, '`receiveStaffType_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->receiveStaffType_e->Sortable = TRUE; // Allow sort
		$this->fields['receiveStaffType_e'] = &$this->receiveStaffType_e;

		// connectStaffCode_e
		$this->connectStaffCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_connectStaffCode_e', 'connectStaffCode_e', '`connectStaffCode_e`', '`connectStaffCode_e`', 200, 100, -1, FALSE, '`connectStaffCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->connectStaffCode_e->Sortable = TRUE; // Allow sort
		$this->fields['connectStaffCode_e'] = &$this->connectStaffCode_e;

		// connectStaffType_e
		$this->connectStaffType_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_connectStaffType_e', 'connectStaffType_e', '`connectStaffType_e`', '`connectStaffType_e`', 200, 100, -1, FALSE, '`connectStaffType_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->connectStaffType_e->Sortable = TRUE; // Allow sort
		$this->fields['connectStaffType_e'] = &$this->connectStaffType_e;

		// shopName_e
		$this->shopName_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_shopName_e', 'shopName_e', '`shopName_e`', '`shopName_e`', 200, 200, -1, FALSE, '`shopName_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->shopName_e->Sortable = TRUE; // Allow sort
		$this->fields['shopName_e'] = &$this->shopName_e;

		// saleOrderCode_e
		$this->saleOrderCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_saleOrderCode_e', 'saleOrderCode_e', '`saleOrderCode_e`', '`saleOrderCode_e`', 200, 200, -1, FALSE, '`saleOrderCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->saleOrderCode_e->Sortable = TRUE; // Allow sort
		$this->fields['saleOrderCode_e'] = &$this->saleOrderCode_e;

		// consultantCode_e
		$this->consultantCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_consultantCode_e', 'consultantCode_e', '`consultantCode_e`', '`consultantCode_e`', 200, 100, -1, FALSE, '`consultantCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->consultantCode_e->Sortable = TRUE; // Allow sort
		$this->fields['consultantCode_e'] = &$this->consultantCode_e;

		// consultantName_e
		$this->consultantName_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_consultantName_e', 'consultantName_e', '`consultantName_e`', '`consultantName_e`', 200, 200, -1, FALSE, '`consultantName_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->consultantName_e->Sortable = TRUE; // Allow sort
		$this->fields['consultantName_e'] = &$this->consultantName_e;

		// consultantType_e
		$this->consultantType_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_consultantType_e', 'consultantType_e', '`consultantType_e`', '`consultantType_e`', 200, 200, -1, FALSE, '`consultantType_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->consultantType_e->Sortable = TRUE; // Allow sort
		$this->fields['consultantType_e'] = &$this->consultantType_e;

		// created_By_e
		$this->created_By_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_created_By_e', 'created_By_e', '`created_By_e`', '`created_By_e`', 200, 100, -1, FALSE, '`created_By_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->created_By_e->Sortable = TRUE; // Allow sort
		$this->fields['created_By_e'] = &$this->created_By_e;

		// createdBranch_e
		$this->createdBranch_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_createdBranch_e', 'createdBranch_e', '`createdBranch_e`', '`createdBranch_e`', 200, 200, -1, FALSE, '`createdBranch_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->createdBranch_e->Sortable = TRUE; // Allow sort
		$this->fields['createdBranch_e'] = &$this->createdBranch_e;

		// generated_Code_By_e
		$this->generated_Code_By_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_generated_Code_By_e', 'generated_Code_By_e', '`generated_Code_By_e`', '`generated_Code_By_e`', 200, 200, -1, FALSE, '`generated_Code_By_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->generated_Code_By_e->Sortable = TRUE; // Allow sort
		$this->fields['generated_Code_By_e'] = &$this->generated_Code_By_e;

		// approve_Paid_By_e
		$this->approve_Paid_By_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_approve_Paid_By_e', 'approve_Paid_By_e', '`approve_Paid_By_e`', '`approve_Paid_By_e`', 200, 200, -1, FALSE, '`approve_Paid_By_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->approve_Paid_By_e->Sortable = TRUE; // Allow sort
		$this->fields['approve_Paid_By_e'] = &$this->approve_Paid_By_e;

		// Delivery_Note_e
		$this->Delivery_Note_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Delivery_Note_e', 'Delivery_Note_e', '`Delivery_Note_e`', '`Delivery_Note_e`', 200, 200, -1, FALSE, '`Delivery_Note_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Delivery_Note_e->Sortable = TRUE; // Allow sort
		$this->fields['Delivery_Note_e'] = &$this->Delivery_Note_e;

		// Delivery_Code_e
		$this->Delivery_Code_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Delivery_Code_e', 'Delivery_Code_e', '`Delivery_Code_e`', '`Delivery_Code_e`', 200, 200, -1, FALSE, '`Delivery_Code_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Delivery_Code_e->Sortable = TRUE; // Allow sort
		$this->fields['Delivery_Code_e'] = &$this->Delivery_Code_e;

		// Customer_Note_e
		$this->Customer_Note_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Customer_Note_e', 'Customer_Note_e', '`Customer_Note_e`', '`Customer_Note_e`', 200, 200, -1, FALSE, '`Customer_Note_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Customer_Note_e->Sortable = TRUE; // Allow sort
		$this->fields['Customer_Note_e'] = &$this->Customer_Note_e;

		// saleOrderCreateDate_e
		$this->saleOrderCreateDate_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_saleOrderCreateDate_e', 'saleOrderCreateDate_e', '`saleOrderCreateDate_e`', '`saleOrderCreateDate_e`', 200, 200, -1, FALSE, '`saleOrderCreateDate_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->saleOrderCreateDate_e->Sortable = TRUE; // Allow sort
		$this->fields['saleOrderCreateDate_e'] = &$this->saleOrderCreateDate_e;

		// saleOrderPayDate_e
		$this->saleOrderPayDate_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_saleOrderPayDate_e', 'saleOrderPayDate_e', '`saleOrderPayDate_e`', '`saleOrderPayDate_e`', 200, 200, -1, FALSE, '`saleOrderPayDate_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->saleOrderPayDate_e->Sortable = TRUE; // Allow sort
		$this->fields['saleOrderPayDate_e'] = &$this->saleOrderPayDate_e;

		// Time_of_Procesing_e
		$this->Time_of_Procesing_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Time_of_Procesing_e', 'Time_of_Procesing_e', '`Time_of_Procesing_e`', '`Time_of_Procesing_e`', 200, 200, -1, FALSE, '`Time_of_Procesing_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Time_of_Procesing_e->Sortable = TRUE; // Allow sort
		$this->fields['Time_of_Procesing_e'] = &$this->Time_of_Procesing_e;

		// Time_of_new_e
		$this->Time_of_new_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Time_of_new_e', 'Time_of_new_e', '`Time_of_new_e`', '`Time_of_new_e`', 200, 200, -1, FALSE, '`Time_of_new_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Time_of_new_e->Sortable = TRUE; // Allow sort
		$this->fields['Time_of_new_e'] = &$this->Time_of_new_e;

		// Time_of_Finished_e
		$this->Time_of_Finished_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Time_of_Finished_e', 'Time_of_Finished_e', '`Time_of_Finished_e`', '`Time_of_Finished_e`', 200, 200, -1, FALSE, '`Time_of_Finished_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Time_of_Finished_e->Sortable = TRUE; // Allow sort
		$this->fields['Time_of_Finished_e'] = &$this->Time_of_Finished_e;

		// KPI_CC_Hour_e
		$this->KPI_CC_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_KPI_CC_Hour_e', 'KPI_CC_Hour_e', '`KPI_CC_Hour_e`', '`KPI_CC_Hour_e`', 200, 100, -1, FALSE, '`KPI_CC_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->KPI_CC_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['KPI_CC_Hour_e'] = &$this->KPI_CC_Hour_e;

		// KPI_NEW_Hour_e
		$this->KPI_NEW_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_KPI_NEW_Hour_e', 'KPI_NEW_Hour_e', '`KPI_NEW_Hour_e`', '`KPI_NEW_Hour_e`', 200, 200, -1, FALSE, '`KPI_NEW_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->KPI_NEW_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['KPI_NEW_Hour_e'] = &$this->KPI_NEW_Hour_e;

		// KPI_PROCESING_Hour_e
		$this->KPI_PROCESING_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_KPI_PROCESING_Hour_e', 'KPI_PROCESING_Hour_e', '`KPI_PROCESING_Hour_e`', '`KPI_PROCESING_Hour_e`', 200, 200, -1, FALSE, '`KPI_PROCESING_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->KPI_PROCESING_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['KPI_PROCESING_Hour_e'] = &$this->KPI_PROCESING_Hour_e;

		// KPI_ALL_Hour_e
		$this->KPI_ALL_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_KPI_ALL_Hour_e', 'KPI_ALL_Hour_e', '`KPI_ALL_Hour_e`', '`KPI_ALL_Hour_e`', 200, 200, -1, FALSE, '`KPI_ALL_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->KPI_ALL_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['KPI_ALL_Hour_e'] = &$this->KPI_ALL_Hour_e;

		// Kpi_Register_Hour_e
		$this->Kpi_Register_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Kpi_Register_Hour_e', 'Kpi_Register_Hour_e', '`Kpi_Register_Hour_e`', '`Kpi_Register_Hour_e`', 200, 200, -1, FALSE, '`Kpi_Register_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Kpi_Register_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['Kpi_Register_Hour_e'] = &$this->Kpi_Register_Hour_e;

		// Kpi_Bitel_Hour_e
		$this->Kpi_Bitel_Hour_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Kpi_Bitel_Hour_e', 'Kpi_Bitel_Hour_e', '`Kpi_Bitel_Hour_e`', '`Kpi_Bitel_Hour_e`', 200, 200, -1, FALSE, '`Kpi_Bitel_Hour_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Kpi_Bitel_Hour_e->Sortable = TRUE; // Allow sort
		$this->fields['Kpi_Bitel_Hour_e'] = &$this->Kpi_Bitel_Hour_e;

		// AmountGB_e
		$this->AmountGB_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_AmountGB_e', 'AmountGB_e', '`AmountGB_e`', '`AmountGB_e`', 200, 200, -1, FALSE, '`AmountGB_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->AmountGB_e->Sortable = TRUE; // Allow sort
		$this->fields['AmountGB_e'] = &$this->AmountGB_e;

		// Price_1_e
		$this->Price_1_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Price_1_e', 'Price_1_e', '`Price_1_e`', '`Price_1_e`', 200, 200, -1, FALSE, '`Price_1_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Price_1_e->Sortable = TRUE; // Allow sort
		$this->fields['Price_1_e'] = &$this->Price_1_e;

		// Status_1_e
		$this->Status_1_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Status_1_e', 'Status_1_e', '`Status_1_e`', '`Status_1_e`', 200, 100, -1, FALSE, '`Status_1_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Status_1_e->Sortable = TRUE; // Allow sort
		$this->fields['Status_1_e'] = &$this->Status_1_e;

		// Registered_Date_e
		$this->Registered_Date_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Registered_Date_e', 'Registered_Date_e', '`Registered_Date_e`', '`Registered_Date_e`', 200, 200, -1, FALSE, '`Registered_Date_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Registered_Date_e->Sortable = TRUE; // Allow sort
		$this->fields['Registered_Date_e'] = &$this->Registered_Date_e;

		// Sumary_e
		$this->Sumary_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Sumary_e', 'Sumary_e', '`Sumary_e`', '`Sumary_e`', 200, 200, -1, FALSE, '`Sumary_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Sumary_e->Sortable = TRUE; // Allow sort
		$this->fields['Sumary_e'] = &$this->Sumary_e;

		// Plans_e
		$this->Plans_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Plans_e', 'Plans_e', '`Plans_e`', '`Plans_e`', 200, 200, -1, FALSE, '`Plans_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Plans_e->Sortable = TRUE; // Allow sort
		$this->fields['Plans_e'] = &$this->Plans_e;

		// Isdns_e
		$this->Isdns_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Isdns_e', 'Isdns_e', '`Isdns_e`', '`Isdns_e`', 200, 200, -1, FALSE, '`Isdns_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Isdns_e->Sortable = TRUE; // Allow sort
		$this->fields['Isdns_e'] = &$this->Isdns_e;

		// PlanTypes_e
		$this->PlanTypes_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_PlanTypes_e', 'PlanTypes_e', '`PlanTypes_e`', '`PlanTypes_e`', 200, 200, -1, FALSE, '`PlanTypes_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->PlanTypes_e->Sortable = TRUE; // Allow sort
		$this->fields['PlanTypes_e'] = &$this->PlanTypes_e;

		// Serials_e
		$this->Serials_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Serials_e', 'Serials_e', '`Serials_e`', '`Serials_e`', 200, 200, -1, FALSE, '`Serials_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Serials_e->Sortable = TRUE; // Allow sort
		$this->fields['Serials_e'] = &$this->Serials_e;

		// Status_2_e
		$this->Status_2_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Status_2_e', 'Status_2_e', '`Status_2_e`', '`Status_2_e`', 200, 200, -1, FALSE, '`Status_2_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Status_2_e->Sortable = TRUE; // Allow sort
		$this->fields['Status_2_e'] = &$this->Status_2_e;

		// Registered_Date_2_e
		$this->Registered_Date_2_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Registered_Date_2_e', 'Registered_Date_2_e', '`Registered_Date_2_e`', '`Registered_Date_2_e`', 200, 200, -1, FALSE, '`Registered_Date_2_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Registered_Date_2_e->Sortable = TRUE; // Allow sort
		$this->fields['Registered_Date_2_e'] = &$this->Registered_Date_2_e;

		// Summary_2_e
		$this->Summary_2_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Summary_2_e', 'Summary_2_e', '`Summary_2_e`', '`Summary_2_e`', 200, 200, -1, FALSE, '`Summary_2_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Summary_2_e->Sortable = TRUE; // Allow sort
		$this->fields['Summary_2_e'] = &$this->Summary_2_e;

		// serial_2_e
		$this->serial_2_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_serial_2_e', 'serial_2_e', '`serial_2_e`', '`serial_2_e`', 200, 200, -1, FALSE, '`serial_2_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->serial_2_e->Sortable = TRUE; // Allow sort
		$this->fields['serial_2_e'] = &$this->serial_2_e;

		// HandsetCode_e
		$this->HandsetCode_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_HandsetCode_e', 'HandsetCode_e', '`HandsetCode_e`', '`HandsetCode_e`', 200, 200, -1, FALSE, '`HandsetCode_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->HandsetCode_e->Sortable = TRUE; // Allow sort
		$this->fields['HandsetCode_e'] = &$this->HandsetCode_e;

		// HandsetName_e
		$this->HandsetName_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_HandsetName_e', 'HandsetName_e', '`HandsetName_e`', '`HandsetName_e`', 200, 200, -1, FALSE, '`HandsetName_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->HandsetName_e->Sortable = TRUE; // Allow sort
		$this->fields['HandsetName_e'] = &$this->HandsetName_e;

		// Status_3_e
		$this->Status_3_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Status_3_e', 'Status_3_e', '`Status_3_e`', '`Status_3_e`', 200, 200, -1, FALSE, '`Status_3_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Status_3_e->Sortable = TRUE; // Allow sort
		$this->fields['Status_3_e'] = &$this->Status_3_e;

		// Summary_3_e
		$this->Summary_3_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_Summary_3_e', 'Summary_3_e', '`Summary_3_e`', '`Summary_3_e`', 200, 200, -1, FALSE, '`Summary_3_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Summary_3_e->Sortable = TRUE; // Allow sort
		$this->fields['Summary_3_e'] = &$this->Summary_3_e;

		// fecha_activa_e
		$this->fecha_activa_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_fecha_activa_e', 'fecha_activa_e', '`fecha_activa_e`', '`fecha_activa_e`', 200, 200, -1, FALSE, '`fecha_activa_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->fecha_activa_e->Sortable = TRUE; // Allow sort
		$this->fields['fecha_activa_e'] = &$this->fecha_activa_e;

		// mes_activa_e
		$this->mes_activa_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_mes_activa_e', 'mes_activa_e', '`mes_activa_e`', '`mes_activa_e`', 200, 200, -1, FALSE, '`mes_activa_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->mes_activa_e->Sortable = TRUE; // Allow sort
		$this->fields['mes_activa_e'] = &$this->mes_activa_e;

		// SOURCE_OUT_e
		$this->SOURCE_OUT_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_SOURCE_OUT_e', 'SOURCE_OUT_e', '`SOURCE_OUT_e`', '`SOURCE_OUT_e`', 200, 200, -1, FALSE, '`SOURCE_OUT_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->SOURCE_OUT_e->Sortable = TRUE; // Allow sort
		$this->fields['SOURCE_OUT_e'] = &$this->SOURCE_OUT_e;

		// fecha_crea_e
		$this->fecha_crea_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_fecha_crea_e', 'fecha_crea_e', '`fecha_crea_e`', '`fecha_crea_e`', 200, 200, -1, FALSE, '`fecha_crea_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->fecha_crea_e->Sortable = TRUE; // Allow sort
		$this->fields['fecha_crea_e'] = &$this->fecha_crea_e;

		// mes_crea_e
		$this->mes_crea_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_mes_crea_e', 'mes_crea_e', '`mes_crea_e`', '`mes_crea_e`', 200, 200, -1, FALSE, '`mes_crea_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->mes_crea_e->Sortable = TRUE; // Allow sort
		$this->fields['mes_crea_e'] = &$this->mes_crea_e;

		// moto_e
		$this->moto_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_moto_e', 'moto_e', '`moto_e`', '`moto_e`', 200, 200, -1, FALSE, '`moto_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->moto_e->Sortable = TRUE; // Allow sort
		$this->fields['moto_e'] = &$this->moto_e;

		// customer_id
		$this->customer_id = new DbField('kt_driver_task', 'kt_driver_task', 'x_customer_id', 'customer_id', '`customer_id`', '`customer_id`', 3, 11, -1, FALSE, '`customer_id`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->customer_id->Sortable = TRUE; // Allow sort
		$this->customer_id->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['customer_id'] = &$this->customer_id;

		// status
		$this->status = new DbField('kt_driver_task', 'kt_driver_task', 'x_status', 'status', '`status`', '`status`', 200, 255, -1, FALSE, '`status`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->status->Sortable = TRUE; // Allow sort
		$this->fields['status'] = &$this->status;

		// address_e
		$this->address_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_address_e', 'address_e', '`address_e`', '`address_e`', 201, 65535, -1, FALSE, '`address_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXTAREA');
		$this->address_e->Sortable = TRUE; // Allow sort
		$this->fields['address_e'] = &$this->address_e;

		// branch_e
		$this->branch_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_branch_e', 'branch_e', '`branch_e`', '`branch_e`', 200, 255, -1, FALSE, '`branch_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->branch_e->Sortable = TRUE; // Allow sort
		$this->fields['branch_e'] = &$this->branch_e;

		// CreatedTime_e
		$this->CreatedTime_e = new DbField('kt_driver_task', 'kt_driver_task', 'x_CreatedTime_e', 'CreatedTime_e', '`CreatedTime_e`', CastDateFieldForLike("`CreatedTime_e`", 0, "DB"), 135, 19, 0, FALSE, '`CreatedTime_e`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->CreatedTime_e->Sortable = TRUE; // Allow sort
		$this->CreatedTime_e->DefaultErrorMessage = str_replace("%s", $GLOBALS["DATE_FORMAT"], $Language->phrase("IncorrectDate"));
		$this->fields['CreatedTime_e'] = &$this->CreatedTime_e;

		// Status_n
		$this->Status_n = new DbField('kt_driver_task', 'kt_driver_task', 'x_Status_n', 'Status_n', '`Status_n`', '`Status_n`', 3, 11, -1, FALSE, '`Status_n`', FALSE, FALSE, FALSE, 'FORMATTED TEXT', 'TEXT');
		$this->Status_n->Sortable = TRUE; // Allow sort
		$this->Status_n->DefaultErrorMessage = $Language->phrase("IncorrectInteger");
		$this->fields['Status_n'] = &$this->Status_n;
	}

	// Field Visibility
	public function getFieldVisibility($fldParm)
	{
		global $Security;
		return $this->$fldParm->Visible; // Returns original value
	}

	// Set left column class (must be predefined col-*-* classes of Bootstrap grid system)
	function setLeftColumnClass($class)
	{
		if (preg_match('/^col\-(\w+)\-(\d+)$/', $class, $match)) {
			$this->LeftColumnClass = $class . " col-form-label ew-label";
			$this->RightColumnClass = "col-" . $match[1] . "-" . strval(12 - (int)$match[2]);
			$this->OffsetColumnClass = $this->RightColumnClass . " " . str_replace("col-", "offset-", $class);
			$this->TableLeftColumnClass = preg_replace('/^col-\w+-(\d+)$/', "w-col-$1", $class); // Change to w-col-*
		}
	}

	// Single column sort
	public function updateSort(&$fld)
	{
		if ($this->CurrentOrder == $fld->Name) {
			$sortField = $fld->Expression;
			$lastSort = $fld->getSort();
			if ($this->CurrentOrderType == "ASC" || $this->CurrentOrderType == "DESC") {
				$thisSort = $this->CurrentOrderType;
			} else {
				$thisSort = ($lastSort == "ASC") ? "DESC" : "ASC";
			}
			$fld->setSort($thisSort);
			$this->setSessionOrderBy($sortField . " " . $thisSort); // Save to Session
		} else {
			$fld->setSort("");
		}
	}

	// Table level SQL
	public function getSqlFrom() // From
	{
		return ($this->SqlFrom != "") ? $this->SqlFrom : "`kt_driver_task`";
	}
	public function sqlFrom() // For backward compatibility
	{
		return $this->getSqlFrom();
	}
	public function setSqlFrom($v)
	{
		$this->SqlFrom = $v;
	}
	public function getSqlSelect() // Select
	{
		return ($this->SqlSelect != "") ? $this->SqlSelect : "SELECT * FROM " . $this->getSqlFrom();
	}
	public function sqlSelect() // For backward compatibility
	{
		return $this->getSqlSelect();
	}
	public function setSqlSelect($v)
	{
		$this->SqlSelect = $v;
	}
	public function getSqlWhere() // Where
	{
		$where = ($this->SqlWhere != "") ? $this->SqlWhere : "";
		$this->TableFilter = "";
		AddFilter($where, $this->TableFilter);
		return $where;
	}
	public function sqlWhere() // For backward compatibility
	{
		return $this->getSqlWhere();
	}
	public function setSqlWhere($v)
	{
		$this->SqlWhere = $v;
	}
	public function getSqlGroupBy() // Group By
	{
		return ($this->SqlGroupBy != "") ? $this->SqlGroupBy : "";
	}
	public function sqlGroupBy() // For backward compatibility
	{
		return $this->getSqlGroupBy();
	}
	public function setSqlGroupBy($v)
	{
		$this->SqlGroupBy = $v;
	}
	public function getSqlHaving() // Having
	{
		return ($this->SqlHaving != "") ? $this->SqlHaving : "";
	}
	public function sqlHaving() // For backward compatibility
	{
		return $this->getSqlHaving();
	}
	public function setSqlHaving($v)
	{
		$this->SqlHaving = $v;
	}
	public function getSqlOrderBy() // Order By
	{
		return ($this->SqlOrderBy != "") ? $this->SqlOrderBy : "";
	}
	public function sqlOrderBy() // For backward compatibility
	{
		return $this->getSqlOrderBy();
	}
	public function setSqlOrderBy($v)
	{
		$this->SqlOrderBy = $v;
	}

	// Apply User ID filters
	public function applyUserIDFilters($filter)
	{
		return $filter;
	}

	// Check if User ID security allows view all
	public function userIDAllow($id = "")
	{
		$allow = Config("USER_ID_ALLOW");
		switch ($id) {
			case "add":
			case "copy":
			case "gridadd":
			case "register":
			case "addopt":
				return (($allow & 1) == 1);
			case "edit":
			case "gridedit":
			case "update":
			case "changepwd":
			case "forgotpwd":
				return (($allow & 4) == 4);
			case "delete":
				return (($allow & 2) == 2);
			case "view":
				return (($allow & 32) == 32);
			case "search":
				return (($allow & 64) == 64);
			default:
				return (($allow & 8) == 8);
		}
	}

	// Get recordset
	public function getRecordset($sql, $rowcnt = -1, $offset = -1)
	{
		$conn = $this->getConnection();
		$conn->raiseErrorFn = Config("ERROR_FUNC");
		$rs = $conn->selectLimit($sql, $rowcnt, $offset);
		$conn->raiseErrorFn = "";
		return $rs;
	}

	// Get record count
	public function getRecordCount($sql)
	{
		$cnt = -1;
		$rs = NULL;
		$sql = preg_replace('/\/\*BeginOrderBy\*\/[\s\S]+\/\*EndOrderBy\*\//', "", $sql); // Remove ORDER BY clause (MSSQL)
		$pattern = '/^SELECT\s([\s\S]+)\sFROM\s/i';

		// Skip Custom View / SubQuery and SELECT DISTINCT
		if (($this->TableType == 'TABLE' || $this->TableType == 'VIEW' || $this->TableType == 'LINKTABLE') &&
			preg_match($pattern, $sql) && !preg_match('/\(\s*(SELECT[^)]+)\)/i', $sql) && !preg_match('/^\s*select\s+distinct\s+/i', $sql)) {
			$sqlwrk = "SELECT COUNT(*) FROM " . preg_replace($pattern, "", $sql);
		} else {
			$sqlwrk = "SELECT COUNT(*) FROM (" . $sql . ") COUNT_TABLE";
		}
		$conn = $this->getConnection();
		if ($rs = $conn->execute($sqlwrk)) {
			if (!$rs->EOF && $rs->FieldCount() > 0) {
				$cnt = $rs->fields[0];
				$rs->close();
			}
			return (int)$cnt;
		}

		// Unable to get count, get record count directly
		if ($rs = $conn->execute($sql)) {
			$cnt = $rs->RecordCount();
			$rs->close();
			return (int)$cnt;
		}
		return $cnt;
	}

	// Get SQL
	public function getSql($where, $orderBy = "")
	{
		return BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(),
			$this->getSqlGroupBy(), $this->getSqlHaving(), $this->getSqlOrderBy(),
			$where, $orderBy);
	}

	// Table SQL
	public function getCurrentSql()
	{
		$filter = $this->CurrentFilter;
		$filter = $this->applyUserIDFilters($filter);
		$sort = $this->getSessionOrderBy();
		return $this->getSql($filter, $sort);
	}

	// Table SQL with List page filter
	public function getListSql()
	{
		$filter = $this->UseSessionForListSql ? $this->getSessionWhere() : "";
		AddFilter($filter, $this->CurrentFilter);
		$filter = $this->applyUserIDFilters($filter);
		$this->Recordset_Selecting($filter);
		$select = $this->getSqlSelect();
		$sort = $this->UseSessionForListSql ? $this->getSessionOrderBy() : "";
		return BuildSelectSql($select, $this->getSqlWhere(), $this->getSqlGroupBy(),
			$this->getSqlHaving(), $this->getSqlOrderBy(), $filter, $sort);
	}

	// Get ORDER BY clause
	public function getOrderBy()
	{
		$sort = $this->getSessionOrderBy();
		return BuildSelectSql("", "", "", "", $this->getSqlOrderBy(), "", $sort);
	}

	// Get record count based on filter (for detail record count in master table pages)
	public function loadRecordCount($filter)
	{
		$origFilter = $this->CurrentFilter;
		$this->CurrentFilter = $filter;
		$this->Recordset_Selecting($this->CurrentFilter);
		$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : "SELECT * FROM " . $this->getSqlFrom();
		$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : "";
		$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : "";
		$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, "", $this->CurrentFilter, "");
		$cnt = $this->getRecordCount($sql);
		$this->CurrentFilter = $origFilter;
		return $cnt;
	}

	// Get record count (for current List page)
	public function listRecordCount()
	{
		$filter = $this->getSessionWhere();
		AddFilter($filter, $this->CurrentFilter);
		$filter = $this->applyUserIDFilters($filter);
		$this->Recordset_Selecting($filter);
		$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : "SELECT * FROM " . $this->getSqlFrom();
		$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : "";
		$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : "";
		$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, "", $filter, "");
		$cnt = $this->getRecordCount($sql);
		return $cnt;
	}

	// INSERT statement
	protected function insertSql(&$rs)
	{
		$names = "";
		$values = "";
		foreach ($rs as $name => $value) {
			if (!isset($this->fields[$name]) || $this->fields[$name]->IsCustom)
				continue;
			$names .= $this->fields[$name]->Expression . ",";
			$values .= QuotedValue($value, $this->fields[$name]->DataType, $this->Dbid) . ",";
		}
		$names = preg_replace('/,+$/', "", $names);
		$values = preg_replace('/,+$/', "", $values);
		return "INSERT INTO " . $this->UpdateTable . " ($names) VALUES ($values)";
	}

	// Insert
	public function insert(&$rs)
	{
		$conn = $this->getConnection();
		$success = $conn->execute($this->insertSql($rs));
		if ($success) {

			// Get insert id if necessary
			$this->task_id->setDbValue($conn->insert_ID());
			$rs['task_id'] = $this->task_id->DbValue;
		}
		return $success;
	}

	// UPDATE statement
	protected function updateSql(&$rs, $where = "", $curfilter = TRUE)
	{
		$sql = "UPDATE " . $this->UpdateTable . " SET ";
		foreach ($rs as $name => $value) {
			if (!isset($this->fields[$name]) || $this->fields[$name]->IsCustom || $this->fields[$name]->IsAutoIncrement)
				continue;
			$sql .= $this->fields[$name]->Expression . "=";
			$sql .= QuotedValue($value, $this->fields[$name]->DataType, $this->Dbid) . ",";
		}
		$sql = preg_replace('/,+$/', "", $sql);
		$filter = ($curfilter) ? $this->CurrentFilter : "";
		if (is_array($where))
			$where = $this->arrayToFilter($where);
		AddFilter($filter, $where);
		if ($filter != "")
			$sql .= " WHERE " . $filter;
		return $sql;
	}

	// Update
	public function update(&$rs, $where = "", $rsold = NULL, $curfilter = TRUE)
	{
		$conn = $this->getConnection();
		$success = $conn->execute($this->updateSql($rs, $where, $curfilter));
		return $success;
	}

	// DELETE statement
	protected function deleteSql(&$rs, $where = "", $curfilter = TRUE)
	{
		$sql = "DELETE FROM " . $this->UpdateTable . " WHERE ";
		if (is_array($where))
			$where = $this->arrayToFilter($where);
		if ($rs) {
			if (array_key_exists('task_id', $rs))
				AddFilter($where, QuotedName('task_id', $this->Dbid) . '=' . QuotedValue($rs['task_id'], $this->task_id->DataType, $this->Dbid));
		}
		$filter = ($curfilter) ? $this->CurrentFilter : "";
		AddFilter($filter, $where);
		if ($filter != "")
			$sql .= $filter;
		else
			$sql .= "0=1"; // Avoid delete
		return $sql;
	}

	// Delete
	public function delete(&$rs, $where = "", $curfilter = FALSE)
	{
		$success = TRUE;
		$conn = $this->getConnection();
		if ($success)
			$success = $conn->execute($this->deleteSql($rs, $where, $curfilter));
		return $success;
	}

	// Load DbValue from recordset or array
	protected function loadDbValues(&$rs)
	{
		if (!$rs || !is_array($rs) && $rs->EOF)
			return;
		$row = is_array($rs) ? $rs : $rs->fields;
		$this->task_id->DbValue = $row['task_id'];
		$this->task_description->DbValue = $row['task_description'];
		$this->trans_type->DbValue = $row['trans_type'];
		$this->contact_number->DbValue = $row['contact_number'];
		$this->email_address->DbValue = $row['email_address'];
		$this->customer_name->DbValue = $row['customer_name'];
		$this->delivery_date->DbValue = $row['delivery_date'];
		$this->delivery_address->DbValue = $row['delivery_address'];
		$this->team_id->DbValue = $row['team_id'];
		$this->driver_id->DbValue = $row['driver_id'];
		$this->task_lat->DbValue = $row['task_lat'];
		$this->task_lng->DbValue = $row['task_lng'];
		$this->customer_signature->DbValue = $row['customer_signature'];
		$this->date_created->DbValue = $row['date_created'];
		$this->date_modified->DbValue = $row['date_modified'];
		$this->ip_address->DbValue = $row['ip_address'];
		$this->auto_assign_type->DbValue = $row['auto_assign_type'];
		$this->assign_started->DbValue = $row['assign_started'];
		$this->assignment_status->DbValue = $row['assignment_status'];
		$this->dropoff_contact_name->DbValue = $row['dropoff_contact_name'];
		$this->dropoff_contact_number->DbValue = $row['dropoff_contact_number'];
		$this->drop_address->DbValue = $row['drop_address'];
		$this->dropoff_task_lat->DbValue = $row['dropoff_task_lat'];
		$this->dropoff_task_lng->DbValue = $row['dropoff_task_lng'];
		$this->task_token->DbValue = $row['task_token'];
		$this->ratings->DbValue = $row['ratings'];
		$this->rating_comment->DbValue = $row['rating_comment'];
		$this->critical->DbValue = $row['critical'];
		$this->souce_e->DbValue = $row['souce_e'];
		$this->shop_code_e->DbValue = $row['shop_code_e'];
		$this->Received_Channel_e->DbValue = $row['Received_Channel_e'];
		$this->PayMethod_e->DbValue = $row['PayMethod_e'];
		$this->Type_e->DbValue = $row['Type_e'];
		$this->Request_Code_e->DbValue = $row['Request_Code_e'];
		$this->Status_e->DbValue = $row['Status_e'];
		$this->PlanType_e->DbValue = $row['PlanType_e'];
		$this->Plan_e->DbValue = $row['Plan_e'];
		$this->Isdn_e->DbValue = $row['Isdn_e'];
		$this->serial_sim_handset_e->DbValue = $row['serial_sim_handset_e'];
		$this->handset_e->DbValue = $row['handset_e'];
		$this->Connect_Reason_e->DbValue = $row['Connect_Reason_e'];
		$this->Price_e->DbValue = $row['Price_e'];
		$this->Current_Operator_e->DbValue = $row['Current_Operator_e'];
		$this->Current_Plan_Type_e->DbValue = $row['Current_Plan_Type_e'];
		$this->Document_Number_e->DbValue = $row['Document_Number_e'];
		$this->Document_Type_e->DbValue = $row['Document_Type_e'];
		$this->assignStaffCode_e->DbValue = $row['assignStaffCode_e'];
		$this->Delivery_Type_e->DbValue = $row['Delivery_Type_e'];
		$this->assignStaffType_e->DbValue = $row['assignStaffType_e'];
		$this->receiveStaffCode_e->DbValue = $row['receiveStaffCode_e'];
		$this->receiveStaffType_e->DbValue = $row['receiveStaffType_e'];
		$this->connectStaffCode_e->DbValue = $row['connectStaffCode_e'];
		$this->connectStaffType_e->DbValue = $row['connectStaffType_e'];
		$this->shopName_e->DbValue = $row['shopName_e'];
		$this->saleOrderCode_e->DbValue = $row['saleOrderCode_e'];
		$this->consultantCode_e->DbValue = $row['consultantCode_e'];
		$this->consultantName_e->DbValue = $row['consultantName_e'];
		$this->consultantType_e->DbValue = $row['consultantType_e'];
		$this->created_By_e->DbValue = $row['created_By_e'];
		$this->createdBranch_e->DbValue = $row['createdBranch_e'];
		$this->generated_Code_By_e->DbValue = $row['generated_Code_By_e'];
		$this->approve_Paid_By_e->DbValue = $row['approve_Paid_By_e'];
		$this->Delivery_Note_e->DbValue = $row['Delivery_Note_e'];
		$this->Delivery_Code_e->DbValue = $row['Delivery_Code_e'];
		$this->Customer_Note_e->DbValue = $row['Customer_Note_e'];
		$this->saleOrderCreateDate_e->DbValue = $row['saleOrderCreateDate_e'];
		$this->saleOrderPayDate_e->DbValue = $row['saleOrderPayDate_e'];
		$this->Time_of_Procesing_e->DbValue = $row['Time_of_Procesing_e'];
		$this->Time_of_new_e->DbValue = $row['Time_of_new_e'];
		$this->Time_of_Finished_e->DbValue = $row['Time_of_Finished_e'];
		$this->KPI_CC_Hour_e->DbValue = $row['KPI_CC_Hour_e'];
		$this->KPI_NEW_Hour_e->DbValue = $row['KPI_NEW_Hour_e'];
		$this->KPI_PROCESING_Hour_e->DbValue = $row['KPI_PROCESING_Hour_e'];
		$this->KPI_ALL_Hour_e->DbValue = $row['KPI_ALL_Hour_e'];
		$this->Kpi_Register_Hour_e->DbValue = $row['Kpi_Register_Hour_e'];
		$this->Kpi_Bitel_Hour_e->DbValue = $row['Kpi_Bitel_Hour_e'];
		$this->AmountGB_e->DbValue = $row['AmountGB_e'];
		$this->Price_1_e->DbValue = $row['Price_1_e'];
		$this->Status_1_e->DbValue = $row['Status_1_e'];
		$this->Registered_Date_e->DbValue = $row['Registered_Date_e'];
		$this->Sumary_e->DbValue = $row['Sumary_e'];
		$this->Plans_e->DbValue = $row['Plans_e'];
		$this->Isdns_e->DbValue = $row['Isdns_e'];
		$this->PlanTypes_e->DbValue = $row['PlanTypes_e'];
		$this->Serials_e->DbValue = $row['Serials_e'];
		$this->Status_2_e->DbValue = $row['Status_2_e'];
		$this->Registered_Date_2_e->DbValue = $row['Registered_Date_2_e'];
		$this->Summary_2_e->DbValue = $row['Summary_2_e'];
		$this->serial_2_e->DbValue = $row['serial_2_e'];
		$this->HandsetCode_e->DbValue = $row['HandsetCode_e'];
		$this->HandsetName_e->DbValue = $row['HandsetName_e'];
		$this->Status_3_e->DbValue = $row['Status_3_e'];
		$this->Summary_3_e->DbValue = $row['Summary_3_e'];
		$this->fecha_activa_e->DbValue = $row['fecha_activa_e'];
		$this->mes_activa_e->DbValue = $row['mes_activa_e'];
		$this->SOURCE_OUT_e->DbValue = $row['SOURCE_OUT_e'];
		$this->fecha_crea_e->DbValue = $row['fecha_crea_e'];
		$this->mes_crea_e->DbValue = $row['mes_crea_e'];
		$this->moto_e->DbValue = $row['moto_e'];
		$this->customer_id->DbValue = $row['customer_id'];
		$this->status->DbValue = $row['status'];
		$this->address_e->DbValue = $row['address_e'];
		$this->branch_e->DbValue = $row['branch_e'];
		$this->CreatedTime_e->DbValue = $row['CreatedTime_e'];
		$this->Status_n->DbValue = $row['Status_n'];
	}

	// Delete uploaded files
	public function deleteUploadedFiles($row)
	{
		$this->loadDbValues($row);
	}

	// Record filter WHERE clause
	protected function sqlKeyFilter()
	{
		return "`task_id` = @task_id@";
	}

	// Get record filter
	public function getRecordFilter($row = NULL)
	{
		$keyFilter = $this->sqlKeyFilter();
		if (is_array($row))
			$val = array_key_exists('task_id', $row) ? $row['task_id'] : NULL;
		else
			$val = $this->task_id->OldValue !== NULL ? $this->task_id->OldValue : $this->task_id->CurrentValue;
		if (!is_numeric($val))
			return "0=1"; // Invalid key
		if ($val == NULL)
			return "0=1"; // Invalid key
		else
			$keyFilter = str_replace("@task_id@", AdjustSql($val, $this->Dbid), $keyFilter); // Replace key value
		return $keyFilter;
	}

	// Return page URL
	public function getReturnUrl()
	{
		$name = PROJECT_NAME . "_" . $this->TableVar . "_" . Config("TABLE_RETURN_URL");

		// Get referer URL automatically
		if (ServerVar("HTTP_REFERER") != "" && ReferPageName() != CurrentPageName() && ReferPageName() != "login.php") // Referer not same page or login page
			$_SESSION[$name] = ServerVar("HTTP_REFERER"); // Save to Session
		if (@$_SESSION[$name] != "") {
			return $_SESSION[$name];
		} else {
			return "kt_driver_tasklist.php";
		}
	}
	public function setReturnUrl($v)
	{
		$_SESSION[PROJECT_NAME . "_" . $this->TableVar . "_" . Config("TABLE_RETURN_URL")] = $v;
	}

	// Get modal caption
	public function getModalCaption($pageName)
	{
		global $Language;
		if ($pageName == "kt_driver_taskview.php")
			return $Language->phrase("View");
		elseif ($pageName == "kt_driver_taskedit.php")
			return $Language->phrase("Edit");
		elseif ($pageName == "kt_driver_taskadd.php")
			return $Language->phrase("Add");
		else
			return "";
	}

	// List URL
	public function getListUrl()
	{
		return "kt_driver_tasklist.php";
	}

	// View URL
	public function getViewUrl($parm = "")
	{
		if ($parm != "")
			$url = $this->keyUrl("kt_driver_taskview.php", $this->getUrlParm($parm));
		else
			$url = $this->keyUrl("kt_driver_taskview.php", $this->getUrlParm(Config("TABLE_SHOW_DETAIL") . "="));
		return $this->addMasterUrl($url);
	}

	// Add URL
	public function getAddUrl($parm = "")
	{
		if ($parm != "")
			$url = "kt_driver_taskadd.php?" . $this->getUrlParm($parm);
		else
			$url = "kt_driver_taskadd.php";
		return $this->addMasterUrl($url);
	}

	// Edit URL
	public function getEditUrl($parm = "")
	{
		$url = $this->keyUrl("kt_driver_taskedit.php", $this->getUrlParm($parm));
		return $this->addMasterUrl($url);
	}

	// Inline edit URL
	public function getInlineEditUrl()
	{
		$url = $this->keyUrl(CurrentPageName(), $this->getUrlParm("action=edit"));
		return $this->addMasterUrl($url);
	}

	// Copy URL
	public function getCopyUrl($parm = "")
	{
		$url = $this->keyUrl("kt_driver_taskadd.php", $this->getUrlParm($parm));
		return $this->addMasterUrl($url);
	}

	// Inline copy URL
	public function getInlineCopyUrl()
	{
		$url = $this->keyUrl(CurrentPageName(), $this->getUrlParm("action=copy"));
		return $this->addMasterUrl($url);
	}

	// Delete URL
	public function getDeleteUrl()
	{
		return $this->keyUrl("kt_driver_taskdelete.php", $this->getUrlParm());
	}

	// Add master url
	public function addMasterUrl($url)
	{
		return $url;
	}
	public function keyToJson($htmlEncode = FALSE)
	{
		$json = "";
		$json .= "task_id:" . JsonEncode($this->task_id->CurrentValue, "number");
		$json = "{" . $json . "}";
		if ($htmlEncode)
			$json = HtmlEncode($json);
		return $json;
	}

	// Add key value to URL
	public function keyUrl($url, $parm = "")
	{
		$url = $url . "?";
		if ($parm != "")
			$url .= $parm . "&";
		if ($this->task_id->CurrentValue != NULL) {
			$url .= "task_id=" . urlencode($this->task_id->CurrentValue);
		} else {
			return "javascript:ew.alert(ew.language.phrase('InvalidRecord'));";
		}
		return $url;
	}

	// Sort URL
	public function sortUrl(&$fld)
	{
		if ($this->CurrentAction || $this->isExport() ||
			in_array($fld->Type, [128, 204, 205])) { // Unsortable data type
				return "";
		} elseif ($fld->Sortable) {
			$urlParm = $this->getUrlParm("order=" . urlencode($fld->Name) . "&amp;ordertype=" . $fld->reverseSort());
			return $this->addMasterUrl(CurrentPageName() . "?" . $urlParm);
		} else {
			return "";
		}
	}

	// Get record keys from Post/Get/Session
	public function getRecordKeys()
	{
		$arKeys = [];
		$arKey = [];
		if (Param("key_m") !== NULL) {
			$arKeys = Param("key_m");
			$cnt = count($arKeys);
		} else {
			if (Param("task_id") !== NULL)
				$arKeys[] = Param("task_id");
			elseif (IsApi() && Key(0) !== NULL)
				$arKeys[] = Key(0);
			elseif (IsApi() && Route(2) !== NULL)
				$arKeys[] = Route(2);
			else
				$arKeys = NULL; // Do not setup

			//return $arKeys; // Do not return yet, so the values will also be checked by the following code
		}

		// Check keys
		$ar = [];
		if (is_array($arKeys)) {
			foreach ($arKeys as $key) {
				if (!is_numeric($key))
					continue;
				$ar[] = $key;
			}
		}
		return $ar;
	}

	// Get filter from record keys
	public function getFilterFromRecordKeys($setCurrent = TRUE)
	{
		$arKeys = $this->getRecordKeys();
		$keyFilter = "";
		foreach ($arKeys as $key) {
			if ($keyFilter != "") $keyFilter .= " OR ";
			if ($setCurrent)
				$this->task_id->CurrentValue = $key;
			else
				$this->task_id->OldValue = $key;
			$keyFilter .= "(" . $this->getRecordFilter() . ")";
		}
		return $keyFilter;
	}

	// Load rows based on filter
	public function &loadRs($filter)
	{

		// Set up filter (WHERE Clause)
		$sql = $this->getSql($filter);
		$conn = $this->getConnection();
		$rs = $conn->execute($sql);
		return $rs;
	}

	// Load row values from recordset
	public function loadListRowValues(&$rs)
	{
		$this->task_id->setDbValue($rs->fields('task_id'));
		$this->task_description->setDbValue($rs->fields('task_description'));
		$this->trans_type->setDbValue($rs->fields('trans_type'));
		$this->contact_number->setDbValue($rs->fields('contact_number'));
		$this->email_address->setDbValue($rs->fields('email_address'));
		$this->customer_name->setDbValue($rs->fields('customer_name'));
		$this->delivery_date->setDbValue($rs->fields('delivery_date'));
		$this->delivery_address->setDbValue($rs->fields('delivery_address'));
		$this->team_id->setDbValue($rs->fields('team_id'));
		$this->driver_id->setDbValue($rs->fields('driver_id'));
		$this->task_lat->setDbValue($rs->fields('task_lat'));
		$this->task_lng->setDbValue($rs->fields('task_lng'));
		$this->customer_signature->setDbValue($rs->fields('customer_signature'));
		$this->date_created->setDbValue($rs->fields('date_created'));
		$this->date_modified->setDbValue($rs->fields('date_modified'));
		$this->ip_address->setDbValue($rs->fields('ip_address'));
		$this->auto_assign_type->setDbValue($rs->fields('auto_assign_type'));
		$this->assign_started->setDbValue($rs->fields('assign_started'));
		$this->assignment_status->setDbValue($rs->fields('assignment_status'));
		$this->dropoff_contact_name->setDbValue($rs->fields('dropoff_contact_name'));
		$this->dropoff_contact_number->setDbValue($rs->fields('dropoff_contact_number'));
		$this->drop_address->setDbValue($rs->fields('drop_address'));
		$this->dropoff_task_lat->setDbValue($rs->fields('dropoff_task_lat'));
		$this->dropoff_task_lng->setDbValue($rs->fields('dropoff_task_lng'));
		$this->task_token->setDbValue($rs->fields('task_token'));
		$this->ratings->setDbValue($rs->fields('ratings'));
		$this->rating_comment->setDbValue($rs->fields('rating_comment'));
		$this->critical->setDbValue($rs->fields('critical'));
		$this->souce_e->setDbValue($rs->fields('souce_e'));
		$this->shop_code_e->setDbValue($rs->fields('shop_code_e'));
		$this->Received_Channel_e->setDbValue($rs->fields('Received_Channel_e'));
		$this->PayMethod_e->setDbValue($rs->fields('PayMethod_e'));
		$this->Type_e->setDbValue($rs->fields('Type_e'));
		$this->Request_Code_e->setDbValue($rs->fields('Request_Code_e'));
		$this->Status_e->setDbValue($rs->fields('Status_e'));
		$this->PlanType_e->setDbValue($rs->fields('PlanType_e'));
		$this->Plan_e->setDbValue($rs->fields('Plan_e'));
		$this->Isdn_e->setDbValue($rs->fields('Isdn_e'));
		$this->serial_sim_handset_e->setDbValue($rs->fields('serial_sim_handset_e'));
		$this->handset_e->setDbValue($rs->fields('handset_e'));
		$this->Connect_Reason_e->setDbValue($rs->fields('Connect_Reason_e'));
		$this->Price_e->setDbValue($rs->fields('Price_e'));
		$this->Current_Operator_e->setDbValue($rs->fields('Current_Operator_e'));
		$this->Current_Plan_Type_e->setDbValue($rs->fields('Current_Plan_Type_e'));
		$this->Document_Number_e->setDbValue($rs->fields('Document_Number_e'));
		$this->Document_Type_e->setDbValue($rs->fields('Document_Type_e'));
		$this->assignStaffCode_e->setDbValue($rs->fields('assignStaffCode_e'));
		$this->Delivery_Type_e->setDbValue($rs->fields('Delivery_Type_e'));
		$this->assignStaffType_e->setDbValue($rs->fields('assignStaffType_e'));
		$this->receiveStaffCode_e->setDbValue($rs->fields('receiveStaffCode_e'));
		$this->receiveStaffType_e->setDbValue($rs->fields('receiveStaffType_e'));
		$this->connectStaffCode_e->setDbValue($rs->fields('connectStaffCode_e'));
		$this->connectStaffType_e->setDbValue($rs->fields('connectStaffType_e'));
		$this->shopName_e->setDbValue($rs->fields('shopName_e'));
		$this->saleOrderCode_e->setDbValue($rs->fields('saleOrderCode_e'));
		$this->consultantCode_e->setDbValue($rs->fields('consultantCode_e'));
		$this->consultantName_e->setDbValue($rs->fields('consultantName_e'));
		$this->consultantType_e->setDbValue($rs->fields('consultantType_e'));
		$this->created_By_e->setDbValue($rs->fields('created_By_e'));
		$this->createdBranch_e->setDbValue($rs->fields('createdBranch_e'));
		$this->generated_Code_By_e->setDbValue($rs->fields('generated_Code_By_e'));
		$this->approve_Paid_By_e->setDbValue($rs->fields('approve_Paid_By_e'));
		$this->Delivery_Note_e->setDbValue($rs->fields('Delivery_Note_e'));
		$this->Delivery_Code_e->setDbValue($rs->fields('Delivery_Code_e'));
		$this->Customer_Note_e->setDbValue($rs->fields('Customer_Note_e'));
		$this->saleOrderCreateDate_e->setDbValue($rs->fields('saleOrderCreateDate_e'));
		$this->saleOrderPayDate_e->setDbValue($rs->fields('saleOrderPayDate_e'));
		$this->Time_of_Procesing_e->setDbValue($rs->fields('Time_of_Procesing_e'));
		$this->Time_of_new_e->setDbValue($rs->fields('Time_of_new_e'));
		$this->Time_of_Finished_e->setDbValue($rs->fields('Time_of_Finished_e'));
		$this->KPI_CC_Hour_e->setDbValue($rs->fields('KPI_CC_Hour_e'));
		$this->KPI_NEW_Hour_e->setDbValue($rs->fields('KPI_NEW_Hour_e'));
		$this->KPI_PROCESING_Hour_e->setDbValue($rs->fields('KPI_PROCESING_Hour_e'));
		$this->KPI_ALL_Hour_e->setDbValue($rs->fields('KPI_ALL_Hour_e'));
		$this->Kpi_Register_Hour_e->setDbValue($rs->fields('Kpi_Register_Hour_e'));
		$this->Kpi_Bitel_Hour_e->setDbValue($rs->fields('Kpi_Bitel_Hour_e'));
		$this->AmountGB_e->setDbValue($rs->fields('AmountGB_e'));
		$this->Price_1_e->setDbValue($rs->fields('Price_1_e'));
		$this->Status_1_e->setDbValue($rs->fields('Status_1_e'));
		$this->Registered_Date_e->setDbValue($rs->fields('Registered_Date_e'));
		$this->Sumary_e->setDbValue($rs->fields('Sumary_e'));
		$this->Plans_e->setDbValue($rs->fields('Plans_e'));
		$this->Isdns_e->setDbValue($rs->fields('Isdns_e'));
		$this->PlanTypes_e->setDbValue($rs->fields('PlanTypes_e'));
		$this->Serials_e->setDbValue($rs->fields('Serials_e'));
		$this->Status_2_e->setDbValue($rs->fields('Status_2_e'));
		$this->Registered_Date_2_e->setDbValue($rs->fields('Registered_Date_2_e'));
		$this->Summary_2_e->setDbValue($rs->fields('Summary_2_e'));
		$this->serial_2_e->setDbValue($rs->fields('serial_2_e'));
		$this->HandsetCode_e->setDbValue($rs->fields('HandsetCode_e'));
		$this->HandsetName_e->setDbValue($rs->fields('HandsetName_e'));
		$this->Status_3_e->setDbValue($rs->fields('Status_3_e'));
		$this->Summary_3_e->setDbValue($rs->fields('Summary_3_e'));
		$this->fecha_activa_e->setDbValue($rs->fields('fecha_activa_e'));
		$this->mes_activa_e->setDbValue($rs->fields('mes_activa_e'));
		$this->SOURCE_OUT_e->setDbValue($rs->fields('SOURCE_OUT_e'));
		$this->fecha_crea_e->setDbValue($rs->fields('fecha_crea_e'));
		$this->mes_crea_e->setDbValue($rs->fields('mes_crea_e'));
		$this->moto_e->setDbValue($rs->fields('moto_e'));
		$this->customer_id->setDbValue($rs->fields('customer_id'));
		$this->status->setDbValue($rs->fields('status'));
		$this->address_e->setDbValue($rs->fields('address_e'));
		$this->branch_e->setDbValue($rs->fields('branch_e'));
		$this->CreatedTime_e->setDbValue($rs->fields('CreatedTime_e'));
		$this->Status_n->setDbValue($rs->fields('Status_n'));
	}

	// Render list row values
	public function renderListRow()
	{
		global $Security, $CurrentLanguage, $Language;

		// Call Row Rendering event
		$this->Row_Rendering();

		// Common render codes
		// task_id
		// task_description
		// trans_type
		// contact_number
		// email_address
		// customer_name
		// delivery_date
		// delivery_address
		// team_id
		// driver_id
		// task_lat
		// task_lng
		// customer_signature
		// date_created
		// date_modified
		// ip_address
		// auto_assign_type
		// assign_started
		// assignment_status
		// dropoff_contact_name
		// dropoff_contact_number
		// drop_address
		// dropoff_task_lat
		// dropoff_task_lng
		// task_token
		// ratings
		// rating_comment
		// critical
		// souce_e
		// shop_code_e
		// Received_Channel_e
		// PayMethod_e
		// Type_e
		// Request_Code_e
		// Status_e
		// PlanType_e
		// Plan_e
		// Isdn_e
		// serial_sim_handset_e
		// handset_e
		// Connect_Reason_e
		// Price_e
		// Current_Operator_e
		// Current_Plan_Type_e
		// Document_Number_e
		// Document_Type_e
		// assignStaffCode_e
		// Delivery_Type_e
		// assignStaffType_e
		// receiveStaffCode_e
		// receiveStaffType_e
		// connectStaffCode_e
		// connectStaffType_e
		// shopName_e
		// saleOrderCode_e
		// consultantCode_e
		// consultantName_e
		// consultantType_e
		// created_By_e
		// createdBranch_e
		// generated_Code_By_e
		// approve_Paid_By_e
		// Delivery_Note_e
		// Delivery_Code_e
		// Customer_Note_e
		// saleOrderCreateDate_e
		// saleOrderPayDate_e
		// Time_of_Procesing_e
		// Time_of_new_e
		// Time_of_Finished_e
		// KPI_CC_Hour_e
		// KPI_NEW_Hour_e
		// KPI_PROCESING_Hour_e
		// KPI_ALL_Hour_e
		// Kpi_Register_Hour_e
		// Kpi_Bitel_Hour_e
		// AmountGB_e
		// Price_1_e
		// Status_1_e
		// Registered_Date_e
		// Sumary_e
		// Plans_e
		// Isdns_e
		// PlanTypes_e
		// Serials_e
		// Status_2_e
		// Registered_Date_2_e
		// Summary_2_e
		// serial_2_e
		// HandsetCode_e
		// HandsetName_e
		// Status_3_e
		// Summary_3_e
		// fecha_activa_e
		// mes_activa_e
		// SOURCE_OUT_e
		// fecha_crea_e
		// mes_crea_e
		// moto_e
		// customer_id
		// status
		// address_e
		// branch_e
		// CreatedTime_e
		// Status_n
		// task_id

		$this->task_id->ViewValue = $this->task_id->CurrentValue;
		$this->task_id->ViewCustomAttributes = "";

		// task_description
		$this->task_description->ViewValue = $this->task_description->CurrentValue;
		$this->task_description->ViewCustomAttributes = "";

		// trans_type
		$this->trans_type->ViewValue = $this->trans_type->CurrentValue;
		$this->trans_type->ViewCustomAttributes = "";

		// contact_number
		$this->contact_number->ViewValue = $this->contact_number->CurrentValue;
		$this->contact_number->ViewCustomAttributes = "";

		// email_address
		$this->email_address->ViewValue = $this->email_address->CurrentValue;
		$this->email_address->ViewCustomAttributes = "";

		// customer_name
		$this->customer_name->ViewValue = $this->customer_name->CurrentValue;
		$this->customer_name->ViewCustomAttributes = "";

		// delivery_date
		$this->delivery_date->ViewValue = $this->delivery_date->CurrentValue;
		$this->delivery_date->ViewValue = FormatDateTime($this->delivery_date->ViewValue, 0);
		$this->delivery_date->ViewCustomAttributes = "";

		// delivery_address
		$this->delivery_address->ViewValue = $this->delivery_address->CurrentValue;
		$this->delivery_address->ViewCustomAttributes = "";

		// team_id
		$this->team_id->ViewValue = $this->team_id->CurrentValue;
		$this->team_id->ViewValue = FormatNumber($this->team_id->ViewValue, 0, -2, -2, -2);
		$this->team_id->ViewCustomAttributes = "";

		// driver_id
		$this->driver_id->ViewValue = $this->driver_id->CurrentValue;
		$this->driver_id->ViewValue = FormatNumber($this->driver_id->ViewValue, 0, -2, -2, -2);
		$this->driver_id->ViewCustomAttributes = "";

		// task_lat
		$this->task_lat->ViewValue = $this->task_lat->CurrentValue;
		$this->task_lat->ViewCustomAttributes = "";

		// task_lng
		$this->task_lng->ViewValue = $this->task_lng->CurrentValue;
		$this->task_lng->ViewCustomAttributes = "";

		// customer_signature
		$this->customer_signature->ViewValue = $this->customer_signature->CurrentValue;
		$this->customer_signature->ViewCustomAttributes = "";

		// date_created
		$this->date_created->ViewValue = $this->date_created->CurrentValue;
		$this->date_created->ViewValue = FormatDateTime($this->date_created->ViewValue, 0);
		$this->date_created->ViewCustomAttributes = "";

		// date_modified
		$this->date_modified->ViewValue = $this->date_modified->CurrentValue;
		$this->date_modified->ViewValue = FormatDateTime($this->date_modified->ViewValue, 0);
		$this->date_modified->ViewCustomAttributes = "";

		// ip_address
		$this->ip_address->ViewValue = $this->ip_address->CurrentValue;
		$this->ip_address->ViewCustomAttributes = "";

		// auto_assign_type
		$this->auto_assign_type->ViewValue = $this->auto_assign_type->CurrentValue;
		$this->auto_assign_type->ViewCustomAttributes = "";

		// assign_started
		$this->assign_started->ViewValue = $this->assign_started->CurrentValue;
		$this->assign_started->ViewValue = FormatDateTime($this->assign_started->ViewValue, 0);
		$this->assign_started->ViewCustomAttributes = "";

		// assignment_status
		$this->assignment_status->ViewValue = $this->assignment_status->CurrentValue;
		$this->assignment_status->ViewCustomAttributes = "";

		// dropoff_contact_name
		$this->dropoff_contact_name->ViewValue = $this->dropoff_contact_name->CurrentValue;
		$this->dropoff_contact_name->ViewCustomAttributes = "";

		// dropoff_contact_number
		$this->dropoff_contact_number->ViewValue = $this->dropoff_contact_number->CurrentValue;
		$this->dropoff_contact_number->ViewCustomAttributes = "";

		// drop_address
		$this->drop_address->ViewValue = $this->drop_address->CurrentValue;
		$this->drop_address->ViewCustomAttributes = "";

		// dropoff_task_lat
		$this->dropoff_task_lat->ViewValue = $this->dropoff_task_lat->CurrentValue;
		$this->dropoff_task_lat->ViewCustomAttributes = "";

		// dropoff_task_lng
		$this->dropoff_task_lng->ViewValue = $this->dropoff_task_lng->CurrentValue;
		$this->dropoff_task_lng->ViewCustomAttributes = "";

		// task_token
		$this->task_token->ViewValue = $this->task_token->CurrentValue;
		$this->task_token->ViewCustomAttributes = "";

		// ratings
		$this->ratings->ViewValue = $this->ratings->CurrentValue;
		$this->ratings->ViewCustomAttributes = "";

		// rating_comment
		$this->rating_comment->ViewValue = $this->rating_comment->CurrentValue;
		$this->rating_comment->ViewCustomAttributes = "";

		// critical
		$this->critical->ViewValue = $this->critical->CurrentValue;
		$this->critical->ViewValue = FormatNumber($this->critical->ViewValue, 0, -2, -2, -2);
		$this->critical->ViewCustomAttributes = "";

		// souce_e
		$this->souce_e->ViewValue = $this->souce_e->CurrentValue;
		$this->souce_e->ViewCustomAttributes = "";

		// shop_code_e
		$this->shop_code_e->ViewValue = $this->shop_code_e->CurrentValue;
		$this->shop_code_e->ViewCustomAttributes = "";

		// Received_Channel_e
		$this->Received_Channel_e->ViewValue = $this->Received_Channel_e->CurrentValue;
		$this->Received_Channel_e->ViewCustomAttributes = "";

		// PayMethod_e
		$this->PayMethod_e->ViewValue = $this->PayMethod_e->CurrentValue;
		$this->PayMethod_e->ViewCustomAttributes = "";

		// Type_e
		$this->Type_e->ViewValue = $this->Type_e->CurrentValue;
		$this->Type_e->ViewCustomAttributes = "";

		// Request_Code_e
		$this->Request_Code_e->ViewValue = $this->Request_Code_e->CurrentValue;
		$this->Request_Code_e->ViewCustomAttributes = "";

		// Status_e
		$this->Status_e->ViewValue = $this->Status_e->CurrentValue;
		$this->Status_e->ViewCustomAttributes = "";

		// PlanType_e
		$this->PlanType_e->ViewValue = $this->PlanType_e->CurrentValue;
		$this->PlanType_e->ViewCustomAttributes = "";

		// Plan_e
		$this->Plan_e->ViewValue = $this->Plan_e->CurrentValue;
		$this->Plan_e->ViewCustomAttributes = "";

		// Isdn_e
		$this->Isdn_e->ViewValue = $this->Isdn_e->CurrentValue;
		$this->Isdn_e->ViewCustomAttributes = "";

		// serial_sim_handset_e
		$this->serial_sim_handset_e->ViewValue = $this->serial_sim_handset_e->CurrentValue;
		$this->serial_sim_handset_e->ViewCustomAttributes = "";

		// handset_e
		$this->handset_e->ViewValue = $this->handset_e->CurrentValue;
		$this->handset_e->ViewCustomAttributes = "";

		// Connect_Reason_e
		$this->Connect_Reason_e->ViewValue = $this->Connect_Reason_e->CurrentValue;
		$this->Connect_Reason_e->ViewCustomAttributes = "";

		// Price_e
		$this->Price_e->ViewValue = $this->Price_e->CurrentValue;
		$this->Price_e->ViewValue = FormatNumber($this->Price_e->ViewValue, 2, -2, -2, -2);
		$this->Price_e->ViewCustomAttributes = "";

		// Current_Operator_e
		$this->Current_Operator_e->ViewValue = $this->Current_Operator_e->CurrentValue;
		$this->Current_Operator_e->ViewCustomAttributes = "";

		// Current_Plan_Type_e
		$this->Current_Plan_Type_e->ViewValue = $this->Current_Plan_Type_e->CurrentValue;
		$this->Current_Plan_Type_e->ViewCustomAttributes = "";

		// Document_Number_e
		$this->Document_Number_e->ViewValue = $this->Document_Number_e->CurrentValue;
		$this->Document_Number_e->ViewCustomAttributes = "";

		// Document_Type_e
		$this->Document_Type_e->ViewValue = $this->Document_Type_e->CurrentValue;
		$this->Document_Type_e->ViewCustomAttributes = "";

		// assignStaffCode_e
		$this->assignStaffCode_e->ViewValue = $this->assignStaffCode_e->CurrentValue;
		$this->assignStaffCode_e->ViewCustomAttributes = "";

		// Delivery_Type_e
		$this->Delivery_Type_e->ViewValue = $this->Delivery_Type_e->CurrentValue;
		$this->Delivery_Type_e->ViewCustomAttributes = "";

		// assignStaffType_e
		$this->assignStaffType_e->ViewValue = $this->assignStaffType_e->CurrentValue;
		$this->assignStaffType_e->ViewCustomAttributes = "";

		// receiveStaffCode_e
		$this->receiveStaffCode_e->ViewValue = $this->receiveStaffCode_e->CurrentValue;
		$this->receiveStaffCode_e->ViewCustomAttributes = "";

		// receiveStaffType_e
		$this->receiveStaffType_e->ViewValue = $this->receiveStaffType_e->CurrentValue;
		$this->receiveStaffType_e->ViewCustomAttributes = "";

		// connectStaffCode_e
		$this->connectStaffCode_e->ViewValue = $this->connectStaffCode_e->CurrentValue;
		$this->connectStaffCode_e->ViewCustomAttributes = "";

		// connectStaffType_e
		$this->connectStaffType_e->ViewValue = $this->connectStaffType_e->CurrentValue;
		$this->connectStaffType_e->ViewCustomAttributes = "";

		// shopName_e
		$this->shopName_e->ViewValue = $this->shopName_e->CurrentValue;
		$this->shopName_e->ViewCustomAttributes = "";

		// saleOrderCode_e
		$this->saleOrderCode_e->ViewValue = $this->saleOrderCode_e->CurrentValue;
		$this->saleOrderCode_e->ViewCustomAttributes = "";

		// consultantCode_e
		$this->consultantCode_e->ViewValue = $this->consultantCode_e->CurrentValue;
		$this->consultantCode_e->ViewCustomAttributes = "";

		// consultantName_e
		$this->consultantName_e->ViewValue = $this->consultantName_e->CurrentValue;
		$this->consultantName_e->ViewCustomAttributes = "";

		// consultantType_e
		$this->consultantType_e->ViewValue = $this->consultantType_e->CurrentValue;
		$this->consultantType_e->ViewCustomAttributes = "";

		// created_By_e
		$this->created_By_e->ViewValue = $this->created_By_e->CurrentValue;
		$this->created_By_e->ViewCustomAttributes = "";

		// createdBranch_e
		$this->createdBranch_e->ViewValue = $this->createdBranch_e->CurrentValue;
		$this->createdBranch_e->ViewCustomAttributes = "";

		// generated_Code_By_e
		$this->generated_Code_By_e->ViewValue = $this->generated_Code_By_e->CurrentValue;
		$this->generated_Code_By_e->ViewCustomAttributes = "";

		// approve_Paid_By_e
		$this->approve_Paid_By_e->ViewValue = $this->approve_Paid_By_e->CurrentValue;
		$this->approve_Paid_By_e->ViewCustomAttributes = "";

		// Delivery_Note_e
		$this->Delivery_Note_e->ViewValue = $this->Delivery_Note_e->CurrentValue;
		$this->Delivery_Note_e->ViewCustomAttributes = "";

		// Delivery_Code_e
		$this->Delivery_Code_e->ViewValue = $this->Delivery_Code_e->CurrentValue;
		$this->Delivery_Code_e->ViewCustomAttributes = "";

		// Customer_Note_e
		$this->Customer_Note_e->ViewValue = $this->Customer_Note_e->CurrentValue;
		$this->Customer_Note_e->ViewCustomAttributes = "";

		// saleOrderCreateDate_e
		$this->saleOrderCreateDate_e->ViewValue = $this->saleOrderCreateDate_e->CurrentValue;
		$this->saleOrderCreateDate_e->ViewCustomAttributes = "";

		// saleOrderPayDate_e
		$this->saleOrderPayDate_e->ViewValue = $this->saleOrderPayDate_e->CurrentValue;
		$this->saleOrderPayDate_e->ViewCustomAttributes = "";

		// Time_of_Procesing_e
		$this->Time_of_Procesing_e->ViewValue = $this->Time_of_Procesing_e->CurrentValue;
		$this->Time_of_Procesing_e->ViewCustomAttributes = "";

		// Time_of_new_e
		$this->Time_of_new_e->ViewValue = $this->Time_of_new_e->CurrentValue;
		$this->Time_of_new_e->ViewCustomAttributes = "";

		// Time_of_Finished_e
		$this->Time_of_Finished_e->ViewValue = $this->Time_of_Finished_e->CurrentValue;
		$this->Time_of_Finished_e->ViewCustomAttributes = "";

		// KPI_CC_Hour_e
		$this->KPI_CC_Hour_e->ViewValue = $this->KPI_CC_Hour_e->CurrentValue;
		$this->KPI_CC_Hour_e->ViewCustomAttributes = "";

		// KPI_NEW_Hour_e
		$this->KPI_NEW_Hour_e->ViewValue = $this->KPI_NEW_Hour_e->CurrentValue;
		$this->KPI_NEW_Hour_e->ViewCustomAttributes = "";

		// KPI_PROCESING_Hour_e
		$this->KPI_PROCESING_Hour_e->ViewValue = $this->KPI_PROCESING_Hour_e->CurrentValue;
		$this->KPI_PROCESING_Hour_e->ViewCustomAttributes = "";

		// KPI_ALL_Hour_e
		$this->KPI_ALL_Hour_e->ViewValue = $this->KPI_ALL_Hour_e->CurrentValue;
		$this->KPI_ALL_Hour_e->ViewCustomAttributes = "";

		// Kpi_Register_Hour_e
		$this->Kpi_Register_Hour_e->ViewValue = $this->Kpi_Register_Hour_e->CurrentValue;
		$this->Kpi_Register_Hour_e->ViewCustomAttributes = "";

		// Kpi_Bitel_Hour_e
		$this->Kpi_Bitel_Hour_e->ViewValue = $this->Kpi_Bitel_Hour_e->CurrentValue;
		$this->Kpi_Bitel_Hour_e->ViewCustomAttributes = "";

		// AmountGB_e
		$this->AmountGB_e->ViewValue = $this->AmountGB_e->CurrentValue;
		$this->AmountGB_e->ViewCustomAttributes = "";

		// Price_1_e
		$this->Price_1_e->ViewValue = $this->Price_1_e->CurrentValue;
		$this->Price_1_e->ViewCustomAttributes = "";

		// Status_1_e
		$this->Status_1_e->ViewValue = $this->Status_1_e->CurrentValue;
		$this->Status_1_e->ViewCustomAttributes = "";

		// Registered_Date_e
		$this->Registered_Date_e->ViewValue = $this->Registered_Date_e->CurrentValue;
		$this->Registered_Date_e->ViewCustomAttributes = "";

		// Sumary_e
		$this->Sumary_e->ViewValue = $this->Sumary_e->CurrentValue;
		$this->Sumary_e->ViewCustomAttributes = "";

		// Plans_e
		$this->Plans_e->ViewValue = $this->Plans_e->CurrentValue;
		$this->Plans_e->ViewCustomAttributes = "";

		// Isdns_e
		$this->Isdns_e->ViewValue = $this->Isdns_e->CurrentValue;
		$this->Isdns_e->ViewCustomAttributes = "";

		// PlanTypes_e
		$this->PlanTypes_e->ViewValue = $this->PlanTypes_e->CurrentValue;
		$this->PlanTypes_e->ViewCustomAttributes = "";

		// Serials_e
		$this->Serials_e->ViewValue = $this->Serials_e->CurrentValue;
		$this->Serials_e->ViewCustomAttributes = "";

		// Status_2_e
		$this->Status_2_e->ViewValue = $this->Status_2_e->CurrentValue;
		$this->Status_2_e->ViewCustomAttributes = "";

		// Registered_Date_2_e
		$this->Registered_Date_2_e->ViewValue = $this->Registered_Date_2_e->CurrentValue;
		$this->Registered_Date_2_e->ViewCustomAttributes = "";

		// Summary_2_e
		$this->Summary_2_e->ViewValue = $this->Summary_2_e->CurrentValue;
		$this->Summary_2_e->ViewCustomAttributes = "";

		// serial_2_e
		$this->serial_2_e->ViewValue = $this->serial_2_e->CurrentValue;
		$this->serial_2_e->ViewCustomAttributes = "";

		// HandsetCode_e
		$this->HandsetCode_e->ViewValue = $this->HandsetCode_e->CurrentValue;
		$this->HandsetCode_e->ViewCustomAttributes = "";

		// HandsetName_e
		$this->HandsetName_e->ViewValue = $this->HandsetName_e->CurrentValue;
		$this->HandsetName_e->ViewCustomAttributes = "";

		// Status_3_e
		$this->Status_3_e->ViewValue = $this->Status_3_e->CurrentValue;
		$this->Status_3_e->ViewCustomAttributes = "";

		// Summary_3_e
		$this->Summary_3_e->ViewValue = $this->Summary_3_e->CurrentValue;
		$this->Summary_3_e->ViewCustomAttributes = "";

		// fecha_activa_e
		$this->fecha_activa_e->ViewValue = $this->fecha_activa_e->CurrentValue;
		$this->fecha_activa_e->ViewCustomAttributes = "";

		// mes_activa_e
		$this->mes_activa_e->ViewValue = $this->mes_activa_e->CurrentValue;
		$this->mes_activa_e->ViewCustomAttributes = "";

		// SOURCE_OUT_e
		$this->SOURCE_OUT_e->ViewValue = $this->SOURCE_OUT_e->CurrentValue;
		$this->SOURCE_OUT_e->ViewCustomAttributes = "";

		// fecha_crea_e
		$this->fecha_crea_e->ViewValue = $this->fecha_crea_e->CurrentValue;
		$this->fecha_crea_e->ViewCustomAttributes = "";

		// mes_crea_e
		$this->mes_crea_e->ViewValue = $this->mes_crea_e->CurrentValue;
		$this->mes_crea_e->ViewCustomAttributes = "";

		// moto_e
		$this->moto_e->ViewValue = $this->moto_e->CurrentValue;
		$this->moto_e->ViewCustomAttributes = "";

		// customer_id
		$this->customer_id->ViewValue = $this->customer_id->CurrentValue;
		$this->customer_id->ViewValue = FormatNumber($this->customer_id->ViewValue, 0, -2, -2, -2);
		$this->customer_id->ViewCustomAttributes = "";

		// status
		$this->status->ViewValue = $this->status->CurrentValue;
		$this->status->ViewCustomAttributes = "";

		// address_e
		$this->address_e->ViewValue = $this->address_e->CurrentValue;
		$this->address_e->ViewCustomAttributes = "";

		// branch_e
		$this->branch_e->ViewValue = $this->branch_e->CurrentValue;
		$this->branch_e->ViewCustomAttributes = "";

		// CreatedTime_e
		$this->CreatedTime_e->ViewValue = $this->CreatedTime_e->CurrentValue;
		$this->CreatedTime_e->ViewValue = FormatDateTime($this->CreatedTime_e->ViewValue, 0);
		$this->CreatedTime_e->ViewCustomAttributes = "";

		// Status_n
		$this->Status_n->ViewValue = $this->Status_n->CurrentValue;
		$this->Status_n->ViewValue = FormatNumber($this->Status_n->ViewValue, 0, -2, -2, -2);
		$this->Status_n->ViewCustomAttributes = "";

		// task_id
		$this->task_id->LinkCustomAttributes = "";
		$this->task_id->HrefValue = "";
		$this->task_id->TooltipValue = "";

		// task_description
		$this->task_description->LinkCustomAttributes = "";
		$this->task_description->HrefValue = "";
		$this->task_description->TooltipValue = "";

		// trans_type
		$this->trans_type->LinkCustomAttributes = "";
		$this->trans_type->HrefValue = "";
		$this->trans_type->TooltipValue = "";

		// contact_number
		$this->contact_number->LinkCustomAttributes = "";
		$this->contact_number->HrefValue = "";
		$this->contact_number->TooltipValue = "";

		// email_address
		$this->email_address->LinkCustomAttributes = "";
		$this->email_address->HrefValue = "";
		$this->email_address->TooltipValue = "";

		// customer_name
		$this->customer_name->LinkCustomAttributes = "";
		$this->customer_name->HrefValue = "";
		$this->customer_name->TooltipValue = "";

		// delivery_date
		$this->delivery_date->LinkCustomAttributes = "";
		$this->delivery_date->HrefValue = "";
		$this->delivery_date->TooltipValue = "";

		// delivery_address
		$this->delivery_address->LinkCustomAttributes = "";
		$this->delivery_address->HrefValue = "";
		$this->delivery_address->TooltipValue = "";

		// team_id
		$this->team_id->LinkCustomAttributes = "";
		$this->team_id->HrefValue = "";
		$this->team_id->TooltipValue = "";

		// driver_id
		$this->driver_id->LinkCustomAttributes = "";
		$this->driver_id->HrefValue = "";
		$this->driver_id->TooltipValue = "";

		// task_lat
		$this->task_lat->LinkCustomAttributes = "";
		$this->task_lat->HrefValue = "";
		$this->task_lat->TooltipValue = "";

		// task_lng
		$this->task_lng->LinkCustomAttributes = "";
		$this->task_lng->HrefValue = "";
		$this->task_lng->TooltipValue = "";

		// customer_signature
		$this->customer_signature->LinkCustomAttributes = "";
		$this->customer_signature->HrefValue = "";
		$this->customer_signature->TooltipValue = "";

		// date_created
		$this->date_created->LinkCustomAttributes = "";
		$this->date_created->HrefValue = "";
		$this->date_created->TooltipValue = "";

		// date_modified
		$this->date_modified->LinkCustomAttributes = "";
		$this->date_modified->HrefValue = "";
		$this->date_modified->TooltipValue = "";

		// ip_address
		$this->ip_address->LinkCustomAttributes = "";
		$this->ip_address->HrefValue = "";
		$this->ip_address->TooltipValue = "";

		// auto_assign_type
		$this->auto_assign_type->LinkCustomAttributes = "";
		$this->auto_assign_type->HrefValue = "";
		$this->auto_assign_type->TooltipValue = "";

		// assign_started
		$this->assign_started->LinkCustomAttributes = "";
		$this->assign_started->HrefValue = "";
		$this->assign_started->TooltipValue = "";

		// assignment_status
		$this->assignment_status->LinkCustomAttributes = "";
		$this->assignment_status->HrefValue = "";
		$this->assignment_status->TooltipValue = "";

		// dropoff_contact_name
		$this->dropoff_contact_name->LinkCustomAttributes = "";
		$this->dropoff_contact_name->HrefValue = "";
		$this->dropoff_contact_name->TooltipValue = "";

		// dropoff_contact_number
		$this->dropoff_contact_number->LinkCustomAttributes = "";
		$this->dropoff_contact_number->HrefValue = "";
		$this->dropoff_contact_number->TooltipValue = "";

		// drop_address
		$this->drop_address->LinkCustomAttributes = "";
		$this->drop_address->HrefValue = "";
		$this->drop_address->TooltipValue = "";

		// dropoff_task_lat
		$this->dropoff_task_lat->LinkCustomAttributes = "";
		$this->dropoff_task_lat->HrefValue = "";
		$this->dropoff_task_lat->TooltipValue = "";

		// dropoff_task_lng
		$this->dropoff_task_lng->LinkCustomAttributes = "";
		$this->dropoff_task_lng->HrefValue = "";
		$this->dropoff_task_lng->TooltipValue = "";

		// task_token
		$this->task_token->LinkCustomAttributes = "";
		$this->task_token->HrefValue = "";
		$this->task_token->TooltipValue = "";

		// ratings
		$this->ratings->LinkCustomAttributes = "";
		$this->ratings->HrefValue = "";
		$this->ratings->TooltipValue = "";

		// rating_comment
		$this->rating_comment->LinkCustomAttributes = "";
		$this->rating_comment->HrefValue = "";
		$this->rating_comment->TooltipValue = "";

		// critical
		$this->critical->LinkCustomAttributes = "";
		$this->critical->HrefValue = "";
		$this->critical->TooltipValue = "";

		// souce_e
		$this->souce_e->LinkCustomAttributes = "";
		$this->souce_e->HrefValue = "";
		$this->souce_e->TooltipValue = "";

		// shop_code_e
		$this->shop_code_e->LinkCustomAttributes = "";
		$this->shop_code_e->HrefValue = "";
		$this->shop_code_e->TooltipValue = "";

		// Received_Channel_e
		$this->Received_Channel_e->LinkCustomAttributes = "";
		$this->Received_Channel_e->HrefValue = "";
		$this->Received_Channel_e->TooltipValue = "";

		// PayMethod_e
		$this->PayMethod_e->LinkCustomAttributes = "";
		$this->PayMethod_e->HrefValue = "";
		$this->PayMethod_e->TooltipValue = "";

		// Type_e
		$this->Type_e->LinkCustomAttributes = "";
		$this->Type_e->HrefValue = "";
		$this->Type_e->TooltipValue = "";

		// Request_Code_e
		$this->Request_Code_e->LinkCustomAttributes = "";
		$this->Request_Code_e->HrefValue = "";
		$this->Request_Code_e->TooltipValue = "";

		// Status_e
		$this->Status_e->LinkCustomAttributes = "";
		$this->Status_e->HrefValue = "";
		$this->Status_e->TooltipValue = "";

		// PlanType_e
		$this->PlanType_e->LinkCustomAttributes = "";
		$this->PlanType_e->HrefValue = "";
		$this->PlanType_e->TooltipValue = "";

		// Plan_e
		$this->Plan_e->LinkCustomAttributes = "";
		$this->Plan_e->HrefValue = "";
		$this->Plan_e->TooltipValue = "";

		// Isdn_e
		$this->Isdn_e->LinkCustomAttributes = "";
		$this->Isdn_e->HrefValue = "";
		$this->Isdn_e->TooltipValue = "";

		// serial_sim_handset_e
		$this->serial_sim_handset_e->LinkCustomAttributes = "";
		$this->serial_sim_handset_e->HrefValue = "";
		$this->serial_sim_handset_e->TooltipValue = "";

		// handset_e
		$this->handset_e->LinkCustomAttributes = "";
		$this->handset_e->HrefValue = "";
		$this->handset_e->TooltipValue = "";

		// Connect_Reason_e
		$this->Connect_Reason_e->LinkCustomAttributes = "";
		$this->Connect_Reason_e->HrefValue = "";
		$this->Connect_Reason_e->TooltipValue = "";

		// Price_e
		$this->Price_e->LinkCustomAttributes = "";
		$this->Price_e->HrefValue = "";
		$this->Price_e->TooltipValue = "";

		// Current_Operator_e
		$this->Current_Operator_e->LinkCustomAttributes = "";
		$this->Current_Operator_e->HrefValue = "";
		$this->Current_Operator_e->TooltipValue = "";

		// Current_Plan_Type_e
		$this->Current_Plan_Type_e->LinkCustomAttributes = "";
		$this->Current_Plan_Type_e->HrefValue = "";
		$this->Current_Plan_Type_e->TooltipValue = "";

		// Document_Number_e
		$this->Document_Number_e->LinkCustomAttributes = "";
		$this->Document_Number_e->HrefValue = "";
		$this->Document_Number_e->TooltipValue = "";

		// Document_Type_e
		$this->Document_Type_e->LinkCustomAttributes = "";
		$this->Document_Type_e->HrefValue = "";
		$this->Document_Type_e->TooltipValue = "";

		// assignStaffCode_e
		$this->assignStaffCode_e->LinkCustomAttributes = "";
		$this->assignStaffCode_e->HrefValue = "";
		$this->assignStaffCode_e->TooltipValue = "";

		// Delivery_Type_e
		$this->Delivery_Type_e->LinkCustomAttributes = "";
		$this->Delivery_Type_e->HrefValue = "";
		$this->Delivery_Type_e->TooltipValue = "";

		// assignStaffType_e
		$this->assignStaffType_e->LinkCustomAttributes = "";
		$this->assignStaffType_e->HrefValue = "";
		$this->assignStaffType_e->TooltipValue = "";

		// receiveStaffCode_e
		$this->receiveStaffCode_e->LinkCustomAttributes = "";
		$this->receiveStaffCode_e->HrefValue = "";
		$this->receiveStaffCode_e->TooltipValue = "";

		// receiveStaffType_e
		$this->receiveStaffType_e->LinkCustomAttributes = "";
		$this->receiveStaffType_e->HrefValue = "";
		$this->receiveStaffType_e->TooltipValue = "";

		// connectStaffCode_e
		$this->connectStaffCode_e->LinkCustomAttributes = "";
		$this->connectStaffCode_e->HrefValue = "";
		$this->connectStaffCode_e->TooltipValue = "";

		// connectStaffType_e
		$this->connectStaffType_e->LinkCustomAttributes = "";
		$this->connectStaffType_e->HrefValue = "";
		$this->connectStaffType_e->TooltipValue = "";

		// shopName_e
		$this->shopName_e->LinkCustomAttributes = "";
		$this->shopName_e->HrefValue = "";
		$this->shopName_e->TooltipValue = "";

		// saleOrderCode_e
		$this->saleOrderCode_e->LinkCustomAttributes = "";
		$this->saleOrderCode_e->HrefValue = "";
		$this->saleOrderCode_e->TooltipValue = "";

		// consultantCode_e
		$this->consultantCode_e->LinkCustomAttributes = "";
		$this->consultantCode_e->HrefValue = "";
		$this->consultantCode_e->TooltipValue = "";

		// consultantName_e
		$this->consultantName_e->LinkCustomAttributes = "";
		$this->consultantName_e->HrefValue = "";
		$this->consultantName_e->TooltipValue = "";

		// consultantType_e
		$this->consultantType_e->LinkCustomAttributes = "";
		$this->consultantType_e->HrefValue = "";
		$this->consultantType_e->TooltipValue = "";

		// created_By_e
		$this->created_By_e->LinkCustomAttributes = "";
		$this->created_By_e->HrefValue = "";
		$this->created_By_e->TooltipValue = "";

		// createdBranch_e
		$this->createdBranch_e->LinkCustomAttributes = "";
		$this->createdBranch_e->HrefValue = "";
		$this->createdBranch_e->TooltipValue = "";

		// generated_Code_By_e
		$this->generated_Code_By_e->LinkCustomAttributes = "";
		$this->generated_Code_By_e->HrefValue = "";
		$this->generated_Code_By_e->TooltipValue = "";

		// approve_Paid_By_e
		$this->approve_Paid_By_e->LinkCustomAttributes = "";
		$this->approve_Paid_By_e->HrefValue = "";
		$this->approve_Paid_By_e->TooltipValue = "";

		// Delivery_Note_e
		$this->Delivery_Note_e->LinkCustomAttributes = "";
		$this->Delivery_Note_e->HrefValue = "";
		$this->Delivery_Note_e->TooltipValue = "";

		// Delivery_Code_e
		$this->Delivery_Code_e->LinkCustomAttributes = "";
		$this->Delivery_Code_e->HrefValue = "";
		$this->Delivery_Code_e->TooltipValue = "";

		// Customer_Note_e
		$this->Customer_Note_e->LinkCustomAttributes = "";
		$this->Customer_Note_e->HrefValue = "";
		$this->Customer_Note_e->TooltipValue = "";

		// saleOrderCreateDate_e
		$this->saleOrderCreateDate_e->LinkCustomAttributes = "";
		$this->saleOrderCreateDate_e->HrefValue = "";
		$this->saleOrderCreateDate_e->TooltipValue = "";

		// saleOrderPayDate_e
		$this->saleOrderPayDate_e->LinkCustomAttributes = "";
		$this->saleOrderPayDate_e->HrefValue = "";
		$this->saleOrderPayDate_e->TooltipValue = "";

		// Time_of_Procesing_e
		$this->Time_of_Procesing_e->LinkCustomAttributes = "";
		$this->Time_of_Procesing_e->HrefValue = "";
		$this->Time_of_Procesing_e->TooltipValue = "";

		// Time_of_new_e
		$this->Time_of_new_e->LinkCustomAttributes = "";
		$this->Time_of_new_e->HrefValue = "";
		$this->Time_of_new_e->TooltipValue = "";

		// Time_of_Finished_e
		$this->Time_of_Finished_e->LinkCustomAttributes = "";
		$this->Time_of_Finished_e->HrefValue = "";
		$this->Time_of_Finished_e->TooltipValue = "";

		// KPI_CC_Hour_e
		$this->KPI_CC_Hour_e->LinkCustomAttributes = "";
		$this->KPI_CC_Hour_e->HrefValue = "";
		$this->KPI_CC_Hour_e->TooltipValue = "";

		// KPI_NEW_Hour_e
		$this->KPI_NEW_Hour_e->LinkCustomAttributes = "";
		$this->KPI_NEW_Hour_e->HrefValue = "";
		$this->KPI_NEW_Hour_e->TooltipValue = "";

		// KPI_PROCESING_Hour_e
		$this->KPI_PROCESING_Hour_e->LinkCustomAttributes = "";
		$this->KPI_PROCESING_Hour_e->HrefValue = "";
		$this->KPI_PROCESING_Hour_e->TooltipValue = "";

		// KPI_ALL_Hour_e
		$this->KPI_ALL_Hour_e->LinkCustomAttributes = "";
		$this->KPI_ALL_Hour_e->HrefValue = "";
		$this->KPI_ALL_Hour_e->TooltipValue = "";

		// Kpi_Register_Hour_e
		$this->Kpi_Register_Hour_e->LinkCustomAttributes = "";
		$this->Kpi_Register_Hour_e->HrefValue = "";
		$this->Kpi_Register_Hour_e->TooltipValue = "";

		// Kpi_Bitel_Hour_e
		$this->Kpi_Bitel_Hour_e->LinkCustomAttributes = "";
		$this->Kpi_Bitel_Hour_e->HrefValue = "";
		$this->Kpi_Bitel_Hour_e->TooltipValue = "";

		// AmountGB_e
		$this->AmountGB_e->LinkCustomAttributes = "";
		$this->AmountGB_e->HrefValue = "";
		$this->AmountGB_e->TooltipValue = "";

		// Price_1_e
		$this->Price_1_e->LinkCustomAttributes = "";
		$this->Price_1_e->HrefValue = "";
		$this->Price_1_e->TooltipValue = "";

		// Status_1_e
		$this->Status_1_e->LinkCustomAttributes = "";
		$this->Status_1_e->HrefValue = "";
		$this->Status_1_e->TooltipValue = "";

		// Registered_Date_e
		$this->Registered_Date_e->LinkCustomAttributes = "";
		$this->Registered_Date_e->HrefValue = "";
		$this->Registered_Date_e->TooltipValue = "";

		// Sumary_e
		$this->Sumary_e->LinkCustomAttributes = "";
		$this->Sumary_e->HrefValue = "";
		$this->Sumary_e->TooltipValue = "";

		// Plans_e
		$this->Plans_e->LinkCustomAttributes = "";
		$this->Plans_e->HrefValue = "";
		$this->Plans_e->TooltipValue = "";

		// Isdns_e
		$this->Isdns_e->LinkCustomAttributes = "";
		$this->Isdns_e->HrefValue = "";
		$this->Isdns_e->TooltipValue = "";

		// PlanTypes_e
		$this->PlanTypes_e->LinkCustomAttributes = "";
		$this->PlanTypes_e->HrefValue = "";
		$this->PlanTypes_e->TooltipValue = "";

		// Serials_e
		$this->Serials_e->LinkCustomAttributes = "";
		$this->Serials_e->HrefValue = "";
		$this->Serials_e->TooltipValue = "";

		// Status_2_e
		$this->Status_2_e->LinkCustomAttributes = "";
		$this->Status_2_e->HrefValue = "";
		$this->Status_2_e->TooltipValue = "";

		// Registered_Date_2_e
		$this->Registered_Date_2_e->LinkCustomAttributes = "";
		$this->Registered_Date_2_e->HrefValue = "";
		$this->Registered_Date_2_e->TooltipValue = "";

		// Summary_2_e
		$this->Summary_2_e->LinkCustomAttributes = "";
		$this->Summary_2_e->HrefValue = "";
		$this->Summary_2_e->TooltipValue = "";

		// serial_2_e
		$this->serial_2_e->LinkCustomAttributes = "";
		$this->serial_2_e->HrefValue = "";
		$this->serial_2_e->TooltipValue = "";

		// HandsetCode_e
		$this->HandsetCode_e->LinkCustomAttributes = "";
		$this->HandsetCode_e->HrefValue = "";
		$this->HandsetCode_e->TooltipValue = "";

		// HandsetName_e
		$this->HandsetName_e->LinkCustomAttributes = "";
		$this->HandsetName_e->HrefValue = "";
		$this->HandsetName_e->TooltipValue = "";

		// Status_3_e
		$this->Status_3_e->LinkCustomAttributes = "";
		$this->Status_3_e->HrefValue = "";
		$this->Status_3_e->TooltipValue = "";

		// Summary_3_e
		$this->Summary_3_e->LinkCustomAttributes = "";
		$this->Summary_3_e->HrefValue = "";
		$this->Summary_3_e->TooltipValue = "";

		// fecha_activa_e
		$this->fecha_activa_e->LinkCustomAttributes = "";
		$this->fecha_activa_e->HrefValue = "";
		$this->fecha_activa_e->TooltipValue = "";

		// mes_activa_e
		$this->mes_activa_e->LinkCustomAttributes = "";
		$this->mes_activa_e->HrefValue = "";
		$this->mes_activa_e->TooltipValue = "";

		// SOURCE_OUT_e
		$this->SOURCE_OUT_e->LinkCustomAttributes = "";
		$this->SOURCE_OUT_e->HrefValue = "";
		$this->SOURCE_OUT_e->TooltipValue = "";

		// fecha_crea_e
		$this->fecha_crea_e->LinkCustomAttributes = "";
		$this->fecha_crea_e->HrefValue = "";
		$this->fecha_crea_e->TooltipValue = "";

		// mes_crea_e
		$this->mes_crea_e->LinkCustomAttributes = "";
		$this->mes_crea_e->HrefValue = "";
		$this->mes_crea_e->TooltipValue = "";

		// moto_e
		$this->moto_e->LinkCustomAttributes = "";
		$this->moto_e->HrefValue = "";
		$this->moto_e->TooltipValue = "";

		// customer_id
		$this->customer_id->LinkCustomAttributes = "";
		$this->customer_id->HrefValue = "";
		$this->customer_id->TooltipValue = "";

		// status
		$this->status->LinkCustomAttributes = "";
		$this->status->HrefValue = "";
		$this->status->TooltipValue = "";

		// address_e
		$this->address_e->LinkCustomAttributes = "";
		$this->address_e->HrefValue = "";
		$this->address_e->TooltipValue = "";

		// branch_e
		$this->branch_e->LinkCustomAttributes = "";
		$this->branch_e->HrefValue = "";
		$this->branch_e->TooltipValue = "";

		// CreatedTime_e
		$this->CreatedTime_e->LinkCustomAttributes = "";
		$this->CreatedTime_e->HrefValue = "";
		$this->CreatedTime_e->TooltipValue = "";

		// Status_n
		$this->Status_n->LinkCustomAttributes = "";
		$this->Status_n->HrefValue = "";
		$this->Status_n->TooltipValue = "";

		// Call Row Rendered event
		$this->Row_Rendered();

		// Save data for Custom Template
		$this->Rows[] = $this->customTemplateFieldValues();
	}

	// Render edit row values
	public function renderEditRow()
	{
		global $Security, $CurrentLanguage, $Language;

		// Call Row Rendering event
		$this->Row_Rendering();

		// task_id
		$this->task_id->EditAttrs["class"] = "form-control";
		$this->task_id->EditCustomAttributes = "";
		$this->task_id->EditValue = $this->task_id->CurrentValue;
		$this->task_id->ViewCustomAttributes = "";

		// task_description
		$this->task_description->EditAttrs["class"] = "form-control";
		$this->task_description->EditCustomAttributes = "";
		if (!$this->task_description->Raw)
			$this->task_description->CurrentValue = HtmlDecode($this->task_description->CurrentValue);
		$this->task_description->EditValue = $this->task_description->CurrentValue;
		$this->task_description->PlaceHolder = RemoveHtml($this->task_description->caption());

		// trans_type
		$this->trans_type->EditAttrs["class"] = "form-control";
		$this->trans_type->EditCustomAttributes = "";
		if (!$this->trans_type->Raw)
			$this->trans_type->CurrentValue = HtmlDecode($this->trans_type->CurrentValue);
		$this->trans_type->EditValue = $this->trans_type->CurrentValue;
		$this->trans_type->PlaceHolder = RemoveHtml($this->trans_type->caption());

		// contact_number
		$this->contact_number->EditAttrs["class"] = "form-control";
		$this->contact_number->EditCustomAttributes = "";
		if (!$this->contact_number->Raw)
			$this->contact_number->CurrentValue = HtmlDecode($this->contact_number->CurrentValue);
		$this->contact_number->EditValue = $this->contact_number->CurrentValue;
		$this->contact_number->PlaceHolder = RemoveHtml($this->contact_number->caption());

		// email_address
		$this->email_address->EditAttrs["class"] = "form-control";
		$this->email_address->EditCustomAttributes = "";
		if (!$this->email_address->Raw)
			$this->email_address->CurrentValue = HtmlDecode($this->email_address->CurrentValue);
		$this->email_address->EditValue = $this->email_address->CurrentValue;
		$this->email_address->PlaceHolder = RemoveHtml($this->email_address->caption());

		// customer_name
		$this->customer_name->EditAttrs["class"] = "form-control";
		$this->customer_name->EditCustomAttributes = "";
		if (!$this->customer_name->Raw)
			$this->customer_name->CurrentValue = HtmlDecode($this->customer_name->CurrentValue);
		$this->customer_name->EditValue = $this->customer_name->CurrentValue;
		$this->customer_name->PlaceHolder = RemoveHtml($this->customer_name->caption());

		// delivery_date
		$this->delivery_date->EditAttrs["class"] = "form-control";
		$this->delivery_date->EditCustomAttributes = "";
		$this->delivery_date->EditValue = FormatDateTime($this->delivery_date->CurrentValue, 8);
		$this->delivery_date->PlaceHolder = RemoveHtml($this->delivery_date->caption());

		// delivery_address
		$this->delivery_address->EditAttrs["class"] = "form-control";
		$this->delivery_address->EditCustomAttributes = "";
		$this->delivery_address->EditValue = $this->delivery_address->CurrentValue;
		$this->delivery_address->PlaceHolder = RemoveHtml($this->delivery_address->caption());

		// team_id
		$this->team_id->EditAttrs["class"] = "form-control";
		$this->team_id->EditCustomAttributes = "";
		$this->team_id->EditValue = $this->team_id->CurrentValue;
		$this->team_id->PlaceHolder = RemoveHtml($this->team_id->caption());

		// driver_id
		$this->driver_id->EditAttrs["class"] = "form-control";
		$this->driver_id->EditCustomAttributes = "";
		$this->driver_id->EditValue = $this->driver_id->CurrentValue;
		$this->driver_id->PlaceHolder = RemoveHtml($this->driver_id->caption());

		// task_lat
		$this->task_lat->EditAttrs["class"] = "form-control";
		$this->task_lat->EditCustomAttributes = "";
		if (!$this->task_lat->Raw)
			$this->task_lat->CurrentValue = HtmlDecode($this->task_lat->CurrentValue);
		$this->task_lat->EditValue = $this->task_lat->CurrentValue;
		$this->task_lat->PlaceHolder = RemoveHtml($this->task_lat->caption());

		// task_lng
		$this->task_lng->EditAttrs["class"] = "form-control";
		$this->task_lng->EditCustomAttributes = "";
		if (!$this->task_lng->Raw)
			$this->task_lng->CurrentValue = HtmlDecode($this->task_lng->CurrentValue);
		$this->task_lng->EditValue = $this->task_lng->CurrentValue;
		$this->task_lng->PlaceHolder = RemoveHtml($this->task_lng->caption());

		// customer_signature
		$this->customer_signature->EditAttrs["class"] = "form-control";
		$this->customer_signature->EditCustomAttributes = "";
		if (!$this->customer_signature->Raw)
			$this->customer_signature->CurrentValue = HtmlDecode($this->customer_signature->CurrentValue);
		$this->customer_signature->EditValue = $this->customer_signature->CurrentValue;
		$this->customer_signature->PlaceHolder = RemoveHtml($this->customer_signature->caption());

		// date_created
		$this->date_created->EditAttrs["class"] = "form-control";
		$this->date_created->EditCustomAttributes = "";
		$this->date_created->EditValue = FormatDateTime($this->date_created->CurrentValue, 8);
		$this->date_created->PlaceHolder = RemoveHtml($this->date_created->caption());

		// date_modified
		$this->date_modified->EditAttrs["class"] = "form-control";
		$this->date_modified->EditCustomAttributes = "";
		$this->date_modified->EditValue = FormatDateTime($this->date_modified->CurrentValue, 8);
		$this->date_modified->PlaceHolder = RemoveHtml($this->date_modified->caption());

		// ip_address
		$this->ip_address->EditAttrs["class"] = "form-control";
		$this->ip_address->EditCustomAttributes = "";
		if (!$this->ip_address->Raw)
			$this->ip_address->CurrentValue = HtmlDecode($this->ip_address->CurrentValue);
		$this->ip_address->EditValue = $this->ip_address->CurrentValue;
		$this->ip_address->PlaceHolder = RemoveHtml($this->ip_address->caption());

		// auto_assign_type
		$this->auto_assign_type->EditAttrs["class"] = "form-control";
		$this->auto_assign_type->EditCustomAttributes = "";
		if (!$this->auto_assign_type->Raw)
			$this->auto_assign_type->CurrentValue = HtmlDecode($this->auto_assign_type->CurrentValue);
		$this->auto_assign_type->EditValue = $this->auto_assign_type->CurrentValue;
		$this->auto_assign_type->PlaceHolder = RemoveHtml($this->auto_assign_type->caption());

		// assign_started
		$this->assign_started->EditAttrs["class"] = "form-control";
		$this->assign_started->EditCustomAttributes = "";
		$this->assign_started->EditValue = FormatDateTime($this->assign_started->CurrentValue, 8);
		$this->assign_started->PlaceHolder = RemoveHtml($this->assign_started->caption());

		// assignment_status
		$this->assignment_status->EditAttrs["class"] = "form-control";
		$this->assignment_status->EditCustomAttributes = "";
		if (!$this->assignment_status->Raw)
			$this->assignment_status->CurrentValue = HtmlDecode($this->assignment_status->CurrentValue);
		$this->assignment_status->EditValue = $this->assignment_status->CurrentValue;
		$this->assignment_status->PlaceHolder = RemoveHtml($this->assignment_status->caption());

		// dropoff_contact_name
		$this->dropoff_contact_name->EditAttrs["class"] = "form-control";
		$this->dropoff_contact_name->EditCustomAttributes = "";
		if (!$this->dropoff_contact_name->Raw)
			$this->dropoff_contact_name->CurrentValue = HtmlDecode($this->dropoff_contact_name->CurrentValue);
		$this->dropoff_contact_name->EditValue = $this->dropoff_contact_name->CurrentValue;
		$this->dropoff_contact_name->PlaceHolder = RemoveHtml($this->dropoff_contact_name->caption());

		// dropoff_contact_number
		$this->dropoff_contact_number->EditAttrs["class"] = "form-control";
		$this->dropoff_contact_number->EditCustomAttributes = "";
		if (!$this->dropoff_contact_number->Raw)
			$this->dropoff_contact_number->CurrentValue = HtmlDecode($this->dropoff_contact_number->CurrentValue);
		$this->dropoff_contact_number->EditValue = $this->dropoff_contact_number->CurrentValue;
		$this->dropoff_contact_number->PlaceHolder = RemoveHtml($this->dropoff_contact_number->caption());

		// drop_address
		$this->drop_address->EditAttrs["class"] = "form-control";
		$this->drop_address->EditCustomAttributes = "";
		if (!$this->drop_address->Raw)
			$this->drop_address->CurrentValue = HtmlDecode($this->drop_address->CurrentValue);
		$this->drop_address->EditValue = $this->drop_address->CurrentValue;
		$this->drop_address->PlaceHolder = RemoveHtml($this->drop_address->caption());

		// dropoff_task_lat
		$this->dropoff_task_lat->EditAttrs["class"] = "form-control";
		$this->dropoff_task_lat->EditCustomAttributes = "";
		if (!$this->dropoff_task_lat->Raw)
			$this->dropoff_task_lat->CurrentValue = HtmlDecode($this->dropoff_task_lat->CurrentValue);
		$this->dropoff_task_lat->EditValue = $this->dropoff_task_lat->CurrentValue;
		$this->dropoff_task_lat->PlaceHolder = RemoveHtml($this->dropoff_task_lat->caption());

		// dropoff_task_lng
		$this->dropoff_task_lng->EditAttrs["class"] = "form-control";
		$this->dropoff_task_lng->EditCustomAttributes = "";
		if (!$this->dropoff_task_lng->Raw)
			$this->dropoff_task_lng->CurrentValue = HtmlDecode($this->dropoff_task_lng->CurrentValue);
		$this->dropoff_task_lng->EditValue = $this->dropoff_task_lng->CurrentValue;
		$this->dropoff_task_lng->PlaceHolder = RemoveHtml($this->dropoff_task_lng->caption());

		// task_token
		$this->task_token->EditAttrs["class"] = "form-control";
		$this->task_token->EditCustomAttributes = "";
		if (!$this->task_token->Raw)
			$this->task_token->CurrentValue = HtmlDecode($this->task_token->CurrentValue);
		$this->task_token->EditValue = $this->task_token->CurrentValue;
		$this->task_token->PlaceHolder = RemoveHtml($this->task_token->caption());

		// ratings
		$this->ratings->EditAttrs["class"] = "form-control";
		$this->ratings->EditCustomAttributes = "";
		if (!$this->ratings->Raw)
			$this->ratings->CurrentValue = HtmlDecode($this->ratings->CurrentValue);
		$this->ratings->EditValue = $this->ratings->CurrentValue;
		$this->ratings->PlaceHolder = RemoveHtml($this->ratings->caption());

		// rating_comment
		$this->rating_comment->EditAttrs["class"] = "form-control";
		$this->rating_comment->EditCustomAttributes = "";
		if (!$this->rating_comment->Raw)
			$this->rating_comment->CurrentValue = HtmlDecode($this->rating_comment->CurrentValue);
		$this->rating_comment->EditValue = $this->rating_comment->CurrentValue;
		$this->rating_comment->PlaceHolder = RemoveHtml($this->rating_comment->caption());

		// critical
		$this->critical->EditAttrs["class"] = "form-control";
		$this->critical->EditCustomAttributes = "";
		$this->critical->EditValue = $this->critical->CurrentValue;
		$this->critical->PlaceHolder = RemoveHtml($this->critical->caption());

		// souce_e
		$this->souce_e->EditAttrs["class"] = "form-control";
		$this->souce_e->EditCustomAttributes = "";
		if (!$this->souce_e->Raw)
			$this->souce_e->CurrentValue = HtmlDecode($this->souce_e->CurrentValue);
		$this->souce_e->EditValue = $this->souce_e->CurrentValue;
		$this->souce_e->PlaceHolder = RemoveHtml($this->souce_e->caption());

		// shop_code_e
		$this->shop_code_e->EditAttrs["class"] = "form-control";
		$this->shop_code_e->EditCustomAttributes = "";
		if (!$this->shop_code_e->Raw)
			$this->shop_code_e->CurrentValue = HtmlDecode($this->shop_code_e->CurrentValue);
		$this->shop_code_e->EditValue = $this->shop_code_e->CurrentValue;
		$this->shop_code_e->PlaceHolder = RemoveHtml($this->shop_code_e->caption());

		// Received_Channel_e
		$this->Received_Channel_e->EditAttrs["class"] = "form-control";
		$this->Received_Channel_e->EditCustomAttributes = "";
		if (!$this->Received_Channel_e->Raw)
			$this->Received_Channel_e->CurrentValue = HtmlDecode($this->Received_Channel_e->CurrentValue);
		$this->Received_Channel_e->EditValue = $this->Received_Channel_e->CurrentValue;
		$this->Received_Channel_e->PlaceHolder = RemoveHtml($this->Received_Channel_e->caption());

		// PayMethod_e
		$this->PayMethod_e->EditAttrs["class"] = "form-control";
		$this->PayMethod_e->EditCustomAttributes = "";
		if (!$this->PayMethod_e->Raw)
			$this->PayMethod_e->CurrentValue = HtmlDecode($this->PayMethod_e->CurrentValue);
		$this->PayMethod_e->EditValue = $this->PayMethod_e->CurrentValue;
		$this->PayMethod_e->PlaceHolder = RemoveHtml($this->PayMethod_e->caption());

		// Type_e
		$this->Type_e->EditAttrs["class"] = "form-control";
		$this->Type_e->EditCustomAttributes = "";
		if (!$this->Type_e->Raw)
			$this->Type_e->CurrentValue = HtmlDecode($this->Type_e->CurrentValue);
		$this->Type_e->EditValue = $this->Type_e->CurrentValue;
		$this->Type_e->PlaceHolder = RemoveHtml($this->Type_e->caption());

		// Request_Code_e
		$this->Request_Code_e->EditAttrs["class"] = "form-control";
		$this->Request_Code_e->EditCustomAttributes = "";
		if (!$this->Request_Code_e->Raw)
			$this->Request_Code_e->CurrentValue = HtmlDecode($this->Request_Code_e->CurrentValue);
		$this->Request_Code_e->EditValue = $this->Request_Code_e->CurrentValue;
		$this->Request_Code_e->PlaceHolder = RemoveHtml($this->Request_Code_e->caption());

		// Status_e
		$this->Status_e->EditAttrs["class"] = "form-control";
		$this->Status_e->EditCustomAttributes = "";
		if (!$this->Status_e->Raw)
			$this->Status_e->CurrentValue = HtmlDecode($this->Status_e->CurrentValue);
		$this->Status_e->EditValue = $this->Status_e->CurrentValue;
		$this->Status_e->PlaceHolder = RemoveHtml($this->Status_e->caption());

		// PlanType_e
		$this->PlanType_e->EditAttrs["class"] = "form-control";
		$this->PlanType_e->EditCustomAttributes = "";
		if (!$this->PlanType_e->Raw)
			$this->PlanType_e->CurrentValue = HtmlDecode($this->PlanType_e->CurrentValue);
		$this->PlanType_e->EditValue = $this->PlanType_e->CurrentValue;
		$this->PlanType_e->PlaceHolder = RemoveHtml($this->PlanType_e->caption());

		// Plan_e
		$this->Plan_e->EditAttrs["class"] = "form-control";
		$this->Plan_e->EditCustomAttributes = "";
		if (!$this->Plan_e->Raw)
			$this->Plan_e->CurrentValue = HtmlDecode($this->Plan_e->CurrentValue);
		$this->Plan_e->EditValue = $this->Plan_e->CurrentValue;
		$this->Plan_e->PlaceHolder = RemoveHtml($this->Plan_e->caption());

		// Isdn_e
		$this->Isdn_e->EditAttrs["class"] = "form-control";
		$this->Isdn_e->EditCustomAttributes = "";
		if (!$this->Isdn_e->Raw)
			$this->Isdn_e->CurrentValue = HtmlDecode($this->Isdn_e->CurrentValue);
		$this->Isdn_e->EditValue = $this->Isdn_e->CurrentValue;
		$this->Isdn_e->PlaceHolder = RemoveHtml($this->Isdn_e->caption());

		// serial_sim_handset_e
		$this->serial_sim_handset_e->EditAttrs["class"] = "form-control";
		$this->serial_sim_handset_e->EditCustomAttributes = "";
		if (!$this->serial_sim_handset_e->Raw)
			$this->serial_sim_handset_e->CurrentValue = HtmlDecode($this->serial_sim_handset_e->CurrentValue);
		$this->serial_sim_handset_e->EditValue = $this->serial_sim_handset_e->CurrentValue;
		$this->serial_sim_handset_e->PlaceHolder = RemoveHtml($this->serial_sim_handset_e->caption());

		// handset_e
		$this->handset_e->EditAttrs["class"] = "form-control";
		$this->handset_e->EditCustomAttributes = "";
		if (!$this->handset_e->Raw)
			$this->handset_e->CurrentValue = HtmlDecode($this->handset_e->CurrentValue);
		$this->handset_e->EditValue = $this->handset_e->CurrentValue;
		$this->handset_e->PlaceHolder = RemoveHtml($this->handset_e->caption());

		// Connect_Reason_e
		$this->Connect_Reason_e->EditAttrs["class"] = "form-control";
		$this->Connect_Reason_e->EditCustomAttributes = "";
		if (!$this->Connect_Reason_e->Raw)
			$this->Connect_Reason_e->CurrentValue = HtmlDecode($this->Connect_Reason_e->CurrentValue);
		$this->Connect_Reason_e->EditValue = $this->Connect_Reason_e->CurrentValue;
		$this->Connect_Reason_e->PlaceHolder = RemoveHtml($this->Connect_Reason_e->caption());

		// Price_e
		$this->Price_e->EditAttrs["class"] = "form-control";
		$this->Price_e->EditCustomAttributes = "";
		$this->Price_e->EditValue = $this->Price_e->CurrentValue;
		$this->Price_e->PlaceHolder = RemoveHtml($this->Price_e->caption());
		if (strval($this->Price_e->EditValue) != "" && is_numeric($this->Price_e->EditValue))
			$this->Price_e->EditValue = FormatNumber($this->Price_e->EditValue, -2, -2, -2, -2);
		

		// Current_Operator_e
		$this->Current_Operator_e->EditAttrs["class"] = "form-control";
		$this->Current_Operator_e->EditCustomAttributes = "";
		if (!$this->Current_Operator_e->Raw)
			$this->Current_Operator_e->CurrentValue = HtmlDecode($this->Current_Operator_e->CurrentValue);
		$this->Current_Operator_e->EditValue = $this->Current_Operator_e->CurrentValue;
		$this->Current_Operator_e->PlaceHolder = RemoveHtml($this->Current_Operator_e->caption());

		// Current_Plan_Type_e
		$this->Current_Plan_Type_e->EditAttrs["class"] = "form-control";
		$this->Current_Plan_Type_e->EditCustomAttributes = "";
		if (!$this->Current_Plan_Type_e->Raw)
			$this->Current_Plan_Type_e->CurrentValue = HtmlDecode($this->Current_Plan_Type_e->CurrentValue);
		$this->Current_Plan_Type_e->EditValue = $this->Current_Plan_Type_e->CurrentValue;
		$this->Current_Plan_Type_e->PlaceHolder = RemoveHtml($this->Current_Plan_Type_e->caption());

		// Document_Number_e
		$this->Document_Number_e->EditAttrs["class"] = "form-control";
		$this->Document_Number_e->EditCustomAttributes = "";
		if (!$this->Document_Number_e->Raw)
			$this->Document_Number_e->CurrentValue = HtmlDecode($this->Document_Number_e->CurrentValue);
		$this->Document_Number_e->EditValue = $this->Document_Number_e->CurrentValue;
		$this->Document_Number_e->PlaceHolder = RemoveHtml($this->Document_Number_e->caption());

		// Document_Type_e
		$this->Document_Type_e->EditAttrs["class"] = "form-control";
		$this->Document_Type_e->EditCustomAttributes = "";
		if (!$this->Document_Type_e->Raw)
			$this->Document_Type_e->CurrentValue = HtmlDecode($this->Document_Type_e->CurrentValue);
		$this->Document_Type_e->EditValue = $this->Document_Type_e->CurrentValue;
		$this->Document_Type_e->PlaceHolder = RemoveHtml($this->Document_Type_e->caption());

		// assignStaffCode_e
		$this->assignStaffCode_e->EditAttrs["class"] = "form-control";
		$this->assignStaffCode_e->EditCustomAttributes = "";
		if (!$this->assignStaffCode_e->Raw)
			$this->assignStaffCode_e->CurrentValue = HtmlDecode($this->assignStaffCode_e->CurrentValue);
		$this->assignStaffCode_e->EditValue = $this->assignStaffCode_e->CurrentValue;
		$this->assignStaffCode_e->PlaceHolder = RemoveHtml($this->assignStaffCode_e->caption());

		// Delivery_Type_e
		$this->Delivery_Type_e->EditAttrs["class"] = "form-control";
		$this->Delivery_Type_e->EditCustomAttributes = "";
		if (!$this->Delivery_Type_e->Raw)
			$this->Delivery_Type_e->CurrentValue = HtmlDecode($this->Delivery_Type_e->CurrentValue);
		$this->Delivery_Type_e->EditValue = $this->Delivery_Type_e->CurrentValue;
		$this->Delivery_Type_e->PlaceHolder = RemoveHtml($this->Delivery_Type_e->caption());

		// assignStaffType_e
		$this->assignStaffType_e->EditAttrs["class"] = "form-control";
		$this->assignStaffType_e->EditCustomAttributes = "";
		if (!$this->assignStaffType_e->Raw)
			$this->assignStaffType_e->CurrentValue = HtmlDecode($this->assignStaffType_e->CurrentValue);
		$this->assignStaffType_e->EditValue = $this->assignStaffType_e->CurrentValue;
		$this->assignStaffType_e->PlaceHolder = RemoveHtml($this->assignStaffType_e->caption());

		// receiveStaffCode_e
		$this->receiveStaffCode_e->EditAttrs["class"] = "form-control";
		$this->receiveStaffCode_e->EditCustomAttributes = "";
		if (!$this->receiveStaffCode_e->Raw)
			$this->receiveStaffCode_e->CurrentValue = HtmlDecode($this->receiveStaffCode_e->CurrentValue);
		$this->receiveStaffCode_e->EditValue = $this->receiveStaffCode_e->CurrentValue;
		$this->receiveStaffCode_e->PlaceHolder = RemoveHtml($this->receiveStaffCode_e->caption());

		// receiveStaffType_e
		$this->receiveStaffType_e->EditAttrs["class"] = "form-control";
		$this->receiveStaffType_e->EditCustomAttributes = "";
		if (!$this->receiveStaffType_e->Raw)
			$this->receiveStaffType_e->CurrentValue = HtmlDecode($this->receiveStaffType_e->CurrentValue);
		$this->receiveStaffType_e->EditValue = $this->receiveStaffType_e->CurrentValue;
		$this->receiveStaffType_e->PlaceHolder = RemoveHtml($this->receiveStaffType_e->caption());

		// connectStaffCode_e
		$this->connectStaffCode_e->EditAttrs["class"] = "form-control";
		$this->connectStaffCode_e->EditCustomAttributes = "";
		if (!$this->connectStaffCode_e->Raw)
			$this->connectStaffCode_e->CurrentValue = HtmlDecode($this->connectStaffCode_e->CurrentValue);
		$this->connectStaffCode_e->EditValue = $this->connectStaffCode_e->CurrentValue;
		$this->connectStaffCode_e->PlaceHolder = RemoveHtml($this->connectStaffCode_e->caption());

		// connectStaffType_e
		$this->connectStaffType_e->EditAttrs["class"] = "form-control";
		$this->connectStaffType_e->EditCustomAttributes = "";
		if (!$this->connectStaffType_e->Raw)
			$this->connectStaffType_e->CurrentValue = HtmlDecode($this->connectStaffType_e->CurrentValue);
		$this->connectStaffType_e->EditValue = $this->connectStaffType_e->CurrentValue;
		$this->connectStaffType_e->PlaceHolder = RemoveHtml($this->connectStaffType_e->caption());

		// shopName_e
		$this->shopName_e->EditAttrs["class"] = "form-control";
		$this->shopName_e->EditCustomAttributes = "";
		if (!$this->shopName_e->Raw)
			$this->shopName_e->CurrentValue = HtmlDecode($this->shopName_e->CurrentValue);
		$this->shopName_e->EditValue = $this->shopName_e->CurrentValue;
		$this->shopName_e->PlaceHolder = RemoveHtml($this->shopName_e->caption());

		// saleOrderCode_e
		$this->saleOrderCode_e->EditAttrs["class"] = "form-control";
		$this->saleOrderCode_e->EditCustomAttributes = "";
		if (!$this->saleOrderCode_e->Raw)
			$this->saleOrderCode_e->CurrentValue = HtmlDecode($this->saleOrderCode_e->CurrentValue);
		$this->saleOrderCode_e->EditValue = $this->saleOrderCode_e->CurrentValue;
		$this->saleOrderCode_e->PlaceHolder = RemoveHtml($this->saleOrderCode_e->caption());

		// consultantCode_e
		$this->consultantCode_e->EditAttrs["class"] = "form-control";
		$this->consultantCode_e->EditCustomAttributes = "";
		if (!$this->consultantCode_e->Raw)
			$this->consultantCode_e->CurrentValue = HtmlDecode($this->consultantCode_e->CurrentValue);
		$this->consultantCode_e->EditValue = $this->consultantCode_e->CurrentValue;
		$this->consultantCode_e->PlaceHolder = RemoveHtml($this->consultantCode_e->caption());

		// consultantName_e
		$this->consultantName_e->EditAttrs["class"] = "form-control";
		$this->consultantName_e->EditCustomAttributes = "";
		if (!$this->consultantName_e->Raw)
			$this->consultantName_e->CurrentValue = HtmlDecode($this->consultantName_e->CurrentValue);
		$this->consultantName_e->EditValue = $this->consultantName_e->CurrentValue;
		$this->consultantName_e->PlaceHolder = RemoveHtml($this->consultantName_e->caption());

		// consultantType_e
		$this->consultantType_e->EditAttrs["class"] = "form-control";
		$this->consultantType_e->EditCustomAttributes = "";
		if (!$this->consultantType_e->Raw)
			$this->consultantType_e->CurrentValue = HtmlDecode($this->consultantType_e->CurrentValue);
		$this->consultantType_e->EditValue = $this->consultantType_e->CurrentValue;
		$this->consultantType_e->PlaceHolder = RemoveHtml($this->consultantType_e->caption());

		// created_By_e
		$this->created_By_e->EditAttrs["class"] = "form-control";
		$this->created_By_e->EditCustomAttributes = "";
		if (!$this->created_By_e->Raw)
			$this->created_By_e->CurrentValue = HtmlDecode($this->created_By_e->CurrentValue);
		$this->created_By_e->EditValue = $this->created_By_e->CurrentValue;
		$this->created_By_e->PlaceHolder = RemoveHtml($this->created_By_e->caption());

		// createdBranch_e
		$this->createdBranch_e->EditAttrs["class"] = "form-control";
		$this->createdBranch_e->EditCustomAttributes = "";
		if (!$this->createdBranch_e->Raw)
			$this->createdBranch_e->CurrentValue = HtmlDecode($this->createdBranch_e->CurrentValue);
		$this->createdBranch_e->EditValue = $this->createdBranch_e->CurrentValue;
		$this->createdBranch_e->PlaceHolder = RemoveHtml($this->createdBranch_e->caption());

		// generated_Code_By_e
		$this->generated_Code_By_e->EditAttrs["class"] = "form-control";
		$this->generated_Code_By_e->EditCustomAttributes = "";
		if (!$this->generated_Code_By_e->Raw)
			$this->generated_Code_By_e->CurrentValue = HtmlDecode($this->generated_Code_By_e->CurrentValue);
		$this->generated_Code_By_e->EditValue = $this->generated_Code_By_e->CurrentValue;
		$this->generated_Code_By_e->PlaceHolder = RemoveHtml($this->generated_Code_By_e->caption());

		// approve_Paid_By_e
		$this->approve_Paid_By_e->EditAttrs["class"] = "form-control";
		$this->approve_Paid_By_e->EditCustomAttributes = "";
		if (!$this->approve_Paid_By_e->Raw)
			$this->approve_Paid_By_e->CurrentValue = HtmlDecode($this->approve_Paid_By_e->CurrentValue);
		$this->approve_Paid_By_e->EditValue = $this->approve_Paid_By_e->CurrentValue;
		$this->approve_Paid_By_e->PlaceHolder = RemoveHtml($this->approve_Paid_By_e->caption());

		// Delivery_Note_e
		$this->Delivery_Note_e->EditAttrs["class"] = "form-control";
		$this->Delivery_Note_e->EditCustomAttributes = "";
		if (!$this->Delivery_Note_e->Raw)
			$this->Delivery_Note_e->CurrentValue = HtmlDecode($this->Delivery_Note_e->CurrentValue);
		$this->Delivery_Note_e->EditValue = $this->Delivery_Note_e->CurrentValue;
		$this->Delivery_Note_e->PlaceHolder = RemoveHtml($this->Delivery_Note_e->caption());

		// Delivery_Code_e
		$this->Delivery_Code_e->EditAttrs["class"] = "form-control";
		$this->Delivery_Code_e->EditCustomAttributes = "";
		if (!$this->Delivery_Code_e->Raw)
			$this->Delivery_Code_e->CurrentValue = HtmlDecode($this->Delivery_Code_e->CurrentValue);
		$this->Delivery_Code_e->EditValue = $this->Delivery_Code_e->CurrentValue;
		$this->Delivery_Code_e->PlaceHolder = RemoveHtml($this->Delivery_Code_e->caption());

		// Customer_Note_e
		$this->Customer_Note_e->EditAttrs["class"] = "form-control";
		$this->Customer_Note_e->EditCustomAttributes = "";
		if (!$this->Customer_Note_e->Raw)
			$this->Customer_Note_e->CurrentValue = HtmlDecode($this->Customer_Note_e->CurrentValue);
		$this->Customer_Note_e->EditValue = $this->Customer_Note_e->CurrentValue;
		$this->Customer_Note_e->PlaceHolder = RemoveHtml($this->Customer_Note_e->caption());

		// saleOrderCreateDate_e
		$this->saleOrderCreateDate_e->EditAttrs["class"] = "form-control";
		$this->saleOrderCreateDate_e->EditCustomAttributes = "";
		if (!$this->saleOrderCreateDate_e->Raw)
			$this->saleOrderCreateDate_e->CurrentValue = HtmlDecode($this->saleOrderCreateDate_e->CurrentValue);
		$this->saleOrderCreateDate_e->EditValue = $this->saleOrderCreateDate_e->CurrentValue;
		$this->saleOrderCreateDate_e->PlaceHolder = RemoveHtml($this->saleOrderCreateDate_e->caption());

		// saleOrderPayDate_e
		$this->saleOrderPayDate_e->EditAttrs["class"] = "form-control";
		$this->saleOrderPayDate_e->EditCustomAttributes = "";
		if (!$this->saleOrderPayDate_e->Raw)
			$this->saleOrderPayDate_e->CurrentValue = HtmlDecode($this->saleOrderPayDate_e->CurrentValue);
		$this->saleOrderPayDate_e->EditValue = $this->saleOrderPayDate_e->CurrentValue;
		$this->saleOrderPayDate_e->PlaceHolder = RemoveHtml($this->saleOrderPayDate_e->caption());

		// Time_of_Procesing_e
		$this->Time_of_Procesing_e->EditAttrs["class"] = "form-control";
		$this->Time_of_Procesing_e->EditCustomAttributes = "";
		if (!$this->Time_of_Procesing_e->Raw)
			$this->Time_of_Procesing_e->CurrentValue = HtmlDecode($this->Time_of_Procesing_e->CurrentValue);
		$this->Time_of_Procesing_e->EditValue = $this->Time_of_Procesing_e->CurrentValue;
		$this->Time_of_Procesing_e->PlaceHolder = RemoveHtml($this->Time_of_Procesing_e->caption());

		// Time_of_new_e
		$this->Time_of_new_e->EditAttrs["class"] = "form-control";
		$this->Time_of_new_e->EditCustomAttributes = "";
		if (!$this->Time_of_new_e->Raw)
			$this->Time_of_new_e->CurrentValue = HtmlDecode($this->Time_of_new_e->CurrentValue);
		$this->Time_of_new_e->EditValue = $this->Time_of_new_e->CurrentValue;
		$this->Time_of_new_e->PlaceHolder = RemoveHtml($this->Time_of_new_e->caption());

		// Time_of_Finished_e
		$this->Time_of_Finished_e->EditAttrs["class"] = "form-control";
		$this->Time_of_Finished_e->EditCustomAttributes = "";
		if (!$this->Time_of_Finished_e->Raw)
			$this->Time_of_Finished_e->CurrentValue = HtmlDecode($this->Time_of_Finished_e->CurrentValue);
		$this->Time_of_Finished_e->EditValue = $this->Time_of_Finished_e->CurrentValue;
		$this->Time_of_Finished_e->PlaceHolder = RemoveHtml($this->Time_of_Finished_e->caption());

		// KPI_CC_Hour_e
		$this->KPI_CC_Hour_e->EditAttrs["class"] = "form-control";
		$this->KPI_CC_Hour_e->EditCustomAttributes = "";
		if (!$this->KPI_CC_Hour_e->Raw)
			$this->KPI_CC_Hour_e->CurrentValue = HtmlDecode($this->KPI_CC_Hour_e->CurrentValue);
		$this->KPI_CC_Hour_e->EditValue = $this->KPI_CC_Hour_e->CurrentValue;
		$this->KPI_CC_Hour_e->PlaceHolder = RemoveHtml($this->KPI_CC_Hour_e->caption());

		// KPI_NEW_Hour_e
		$this->KPI_NEW_Hour_e->EditAttrs["class"] = "form-control";
		$this->KPI_NEW_Hour_e->EditCustomAttributes = "";
		if (!$this->KPI_NEW_Hour_e->Raw)
			$this->KPI_NEW_Hour_e->CurrentValue = HtmlDecode($this->KPI_NEW_Hour_e->CurrentValue);
		$this->KPI_NEW_Hour_e->EditValue = $this->KPI_NEW_Hour_e->CurrentValue;
		$this->KPI_NEW_Hour_e->PlaceHolder = RemoveHtml($this->KPI_NEW_Hour_e->caption());

		// KPI_PROCESING_Hour_e
		$this->KPI_PROCESING_Hour_e->EditAttrs["class"] = "form-control";
		$this->KPI_PROCESING_Hour_e->EditCustomAttributes = "";
		if (!$this->KPI_PROCESING_Hour_e->Raw)
			$this->KPI_PROCESING_Hour_e->CurrentValue = HtmlDecode($this->KPI_PROCESING_Hour_e->CurrentValue);
		$this->KPI_PROCESING_Hour_e->EditValue = $this->KPI_PROCESING_Hour_e->CurrentValue;
		$this->KPI_PROCESING_Hour_e->PlaceHolder = RemoveHtml($this->KPI_PROCESING_Hour_e->caption());

		// KPI_ALL_Hour_e
		$this->KPI_ALL_Hour_e->EditAttrs["class"] = "form-control";
		$this->KPI_ALL_Hour_e->EditCustomAttributes = "";
		if (!$this->KPI_ALL_Hour_e->Raw)
			$this->KPI_ALL_Hour_e->CurrentValue = HtmlDecode($this->KPI_ALL_Hour_e->CurrentValue);
		$this->KPI_ALL_Hour_e->EditValue = $this->KPI_ALL_Hour_e->CurrentValue;
		$this->KPI_ALL_Hour_e->PlaceHolder = RemoveHtml($this->KPI_ALL_Hour_e->caption());

		// Kpi_Register_Hour_e
		$this->Kpi_Register_Hour_e->EditAttrs["class"] = "form-control";
		$this->Kpi_Register_Hour_e->EditCustomAttributes = "";
		if (!$this->Kpi_Register_Hour_e->Raw)
			$this->Kpi_Register_Hour_e->CurrentValue = HtmlDecode($this->Kpi_Register_Hour_e->CurrentValue);
		$this->Kpi_Register_Hour_e->EditValue = $this->Kpi_Register_Hour_e->CurrentValue;
		$this->Kpi_Register_Hour_e->PlaceHolder = RemoveHtml($this->Kpi_Register_Hour_e->caption());

		// Kpi_Bitel_Hour_e
		$this->Kpi_Bitel_Hour_e->EditAttrs["class"] = "form-control";
		$this->Kpi_Bitel_Hour_e->EditCustomAttributes = "";
		if (!$this->Kpi_Bitel_Hour_e->Raw)
			$this->Kpi_Bitel_Hour_e->CurrentValue = HtmlDecode($this->Kpi_Bitel_Hour_e->CurrentValue);
		$this->Kpi_Bitel_Hour_e->EditValue = $this->Kpi_Bitel_Hour_e->CurrentValue;
		$this->Kpi_Bitel_Hour_e->PlaceHolder = RemoveHtml($this->Kpi_Bitel_Hour_e->caption());

		// AmountGB_e
		$this->AmountGB_e->EditAttrs["class"] = "form-control";
		$this->AmountGB_e->EditCustomAttributes = "";
		if (!$this->AmountGB_e->Raw)
			$this->AmountGB_e->CurrentValue = HtmlDecode($this->AmountGB_e->CurrentValue);
		$this->AmountGB_e->EditValue = $this->AmountGB_e->CurrentValue;
		$this->AmountGB_e->PlaceHolder = RemoveHtml($this->AmountGB_e->caption());

		// Price_1_e
		$this->Price_1_e->EditAttrs["class"] = "form-control";
		$this->Price_1_e->EditCustomAttributes = "";
		if (!$this->Price_1_e->Raw)
			$this->Price_1_e->CurrentValue = HtmlDecode($this->Price_1_e->CurrentValue);
		$this->Price_1_e->EditValue = $this->Price_1_e->CurrentValue;
		$this->Price_1_e->PlaceHolder = RemoveHtml($this->Price_1_e->caption());

		// Status_1_e
		$this->Status_1_e->EditAttrs["class"] = "form-control";
		$this->Status_1_e->EditCustomAttributes = "";
		if (!$this->Status_1_e->Raw)
			$this->Status_1_e->CurrentValue = HtmlDecode($this->Status_1_e->CurrentValue);
		$this->Status_1_e->EditValue = $this->Status_1_e->CurrentValue;
		$this->Status_1_e->PlaceHolder = RemoveHtml($this->Status_1_e->caption());

		// Registered_Date_e
		$this->Registered_Date_e->EditAttrs["class"] = "form-control";
		$this->Registered_Date_e->EditCustomAttributes = "";
		if (!$this->Registered_Date_e->Raw)
			$this->Registered_Date_e->CurrentValue = HtmlDecode($this->Registered_Date_e->CurrentValue);
		$this->Registered_Date_e->EditValue = $this->Registered_Date_e->CurrentValue;
		$this->Registered_Date_e->PlaceHolder = RemoveHtml($this->Registered_Date_e->caption());

		// Sumary_e
		$this->Sumary_e->EditAttrs["class"] = "form-control";
		$this->Sumary_e->EditCustomAttributes = "";
		if (!$this->Sumary_e->Raw)
			$this->Sumary_e->CurrentValue = HtmlDecode($this->Sumary_e->CurrentValue);
		$this->Sumary_e->EditValue = $this->Sumary_e->CurrentValue;
		$this->Sumary_e->PlaceHolder = RemoveHtml($this->Sumary_e->caption());

		// Plans_e
		$this->Plans_e->EditAttrs["class"] = "form-control";
		$this->Plans_e->EditCustomAttributes = "";
		if (!$this->Plans_e->Raw)
			$this->Plans_e->CurrentValue = HtmlDecode($this->Plans_e->CurrentValue);
		$this->Plans_e->EditValue = $this->Plans_e->CurrentValue;
		$this->Plans_e->PlaceHolder = RemoveHtml($this->Plans_e->caption());

		// Isdns_e
		$this->Isdns_e->EditAttrs["class"] = "form-control";
		$this->Isdns_e->EditCustomAttributes = "";
		if (!$this->Isdns_e->Raw)
			$this->Isdns_e->CurrentValue = HtmlDecode($this->Isdns_e->CurrentValue);
		$this->Isdns_e->EditValue = $this->Isdns_e->CurrentValue;
		$this->Isdns_e->PlaceHolder = RemoveHtml($this->Isdns_e->caption());

		// PlanTypes_e
		$this->PlanTypes_e->EditAttrs["class"] = "form-control";
		$this->PlanTypes_e->EditCustomAttributes = "";
		if (!$this->PlanTypes_e->Raw)
			$this->PlanTypes_e->CurrentValue = HtmlDecode($this->PlanTypes_e->CurrentValue);
		$this->PlanTypes_e->EditValue = $this->PlanTypes_e->CurrentValue;
		$this->PlanTypes_e->PlaceHolder = RemoveHtml($this->PlanTypes_e->caption());

		// Serials_e
		$this->Serials_e->EditAttrs["class"] = "form-control";
		$this->Serials_e->EditCustomAttributes = "";
		if (!$this->Serials_e->Raw)
			$this->Serials_e->CurrentValue = HtmlDecode($this->Serials_e->CurrentValue);
		$this->Serials_e->EditValue = $this->Serials_e->CurrentValue;
		$this->Serials_e->PlaceHolder = RemoveHtml($this->Serials_e->caption());

		// Status_2_e
		$this->Status_2_e->EditAttrs["class"] = "form-control";
		$this->Status_2_e->EditCustomAttributes = "";
		if (!$this->Status_2_e->Raw)
			$this->Status_2_e->CurrentValue = HtmlDecode($this->Status_2_e->CurrentValue);
		$this->Status_2_e->EditValue = $this->Status_2_e->CurrentValue;
		$this->Status_2_e->PlaceHolder = RemoveHtml($this->Status_2_e->caption());

		// Registered_Date_2_e
		$this->Registered_Date_2_e->EditAttrs["class"] = "form-control";
		$this->Registered_Date_2_e->EditCustomAttributes = "";
		if (!$this->Registered_Date_2_e->Raw)
			$this->Registered_Date_2_e->CurrentValue = HtmlDecode($this->Registered_Date_2_e->CurrentValue);
		$this->Registered_Date_2_e->EditValue = $this->Registered_Date_2_e->CurrentValue;
		$this->Registered_Date_2_e->PlaceHolder = RemoveHtml($this->Registered_Date_2_e->caption());

		// Summary_2_e
		$this->Summary_2_e->EditAttrs["class"] = "form-control";
		$this->Summary_2_e->EditCustomAttributes = "";
		if (!$this->Summary_2_e->Raw)
			$this->Summary_2_e->CurrentValue = HtmlDecode($this->Summary_2_e->CurrentValue);
		$this->Summary_2_e->EditValue = $this->Summary_2_e->CurrentValue;
		$this->Summary_2_e->PlaceHolder = RemoveHtml($this->Summary_2_e->caption());

		// serial_2_e
		$this->serial_2_e->EditAttrs["class"] = "form-control";
		$this->serial_2_e->EditCustomAttributes = "";
		if (!$this->serial_2_e->Raw)
			$this->serial_2_e->CurrentValue = HtmlDecode($this->serial_2_e->CurrentValue);
		$this->serial_2_e->EditValue = $this->serial_2_e->CurrentValue;
		$this->serial_2_e->PlaceHolder = RemoveHtml($this->serial_2_e->caption());

		// HandsetCode_e
		$this->HandsetCode_e->EditAttrs["class"] = "form-control";
		$this->HandsetCode_e->EditCustomAttributes = "";
		if (!$this->HandsetCode_e->Raw)
			$this->HandsetCode_e->CurrentValue = HtmlDecode($this->HandsetCode_e->CurrentValue);
		$this->HandsetCode_e->EditValue = $this->HandsetCode_e->CurrentValue;
		$this->HandsetCode_e->PlaceHolder = RemoveHtml($this->HandsetCode_e->caption());

		// HandsetName_e
		$this->HandsetName_e->EditAttrs["class"] = "form-control";
		$this->HandsetName_e->EditCustomAttributes = "";
		if (!$this->HandsetName_e->Raw)
			$this->HandsetName_e->CurrentValue = HtmlDecode($this->HandsetName_e->CurrentValue);
		$this->HandsetName_e->EditValue = $this->HandsetName_e->CurrentValue;
		$this->HandsetName_e->PlaceHolder = RemoveHtml($this->HandsetName_e->caption());

		// Status_3_e
		$this->Status_3_e->EditAttrs["class"] = "form-control";
		$this->Status_3_e->EditCustomAttributes = "";
		if (!$this->Status_3_e->Raw)
			$this->Status_3_e->CurrentValue = HtmlDecode($this->Status_3_e->CurrentValue);
		$this->Status_3_e->EditValue = $this->Status_3_e->CurrentValue;
		$this->Status_3_e->PlaceHolder = RemoveHtml($this->Status_3_e->caption());

		// Summary_3_e
		$this->Summary_3_e->EditAttrs["class"] = "form-control";
		$this->Summary_3_e->EditCustomAttributes = "";
		if (!$this->Summary_3_e->Raw)
			$this->Summary_3_e->CurrentValue = HtmlDecode($this->Summary_3_e->CurrentValue);
		$this->Summary_3_e->EditValue = $this->Summary_3_e->CurrentValue;
		$this->Summary_3_e->PlaceHolder = RemoveHtml($this->Summary_3_e->caption());

		// fecha_activa_e
		$this->fecha_activa_e->EditAttrs["class"] = "form-control";
		$this->fecha_activa_e->EditCustomAttributes = "";
		if (!$this->fecha_activa_e->Raw)
			$this->fecha_activa_e->CurrentValue = HtmlDecode($this->fecha_activa_e->CurrentValue);
		$this->fecha_activa_e->EditValue = $this->fecha_activa_e->CurrentValue;
		$this->fecha_activa_e->PlaceHolder = RemoveHtml($this->fecha_activa_e->caption());

		// mes_activa_e
		$this->mes_activa_e->EditAttrs["class"] = "form-control";
		$this->mes_activa_e->EditCustomAttributes = "";
		if (!$this->mes_activa_e->Raw)
			$this->mes_activa_e->CurrentValue = HtmlDecode($this->mes_activa_e->CurrentValue);
		$this->mes_activa_e->EditValue = $this->mes_activa_e->CurrentValue;
		$this->mes_activa_e->PlaceHolder = RemoveHtml($this->mes_activa_e->caption());

		// SOURCE_OUT_e
		$this->SOURCE_OUT_e->EditAttrs["class"] = "form-control";
		$this->SOURCE_OUT_e->EditCustomAttributes = "";
		if (!$this->SOURCE_OUT_e->Raw)
			$this->SOURCE_OUT_e->CurrentValue = HtmlDecode($this->SOURCE_OUT_e->CurrentValue);
		$this->SOURCE_OUT_e->EditValue = $this->SOURCE_OUT_e->CurrentValue;
		$this->SOURCE_OUT_e->PlaceHolder = RemoveHtml($this->SOURCE_OUT_e->caption());

		// fecha_crea_e
		$this->fecha_crea_e->EditAttrs["class"] = "form-control";
		$this->fecha_crea_e->EditCustomAttributes = "";
		if (!$this->fecha_crea_e->Raw)
			$this->fecha_crea_e->CurrentValue = HtmlDecode($this->fecha_crea_e->CurrentValue);
		$this->fecha_crea_e->EditValue = $this->fecha_crea_e->CurrentValue;
		$this->fecha_crea_e->PlaceHolder = RemoveHtml($this->fecha_crea_e->caption());

		// mes_crea_e
		$this->mes_crea_e->EditAttrs["class"] = "form-control";
		$this->mes_crea_e->EditCustomAttributes = "";
		if (!$this->mes_crea_e->Raw)
			$this->mes_crea_e->CurrentValue = HtmlDecode($this->mes_crea_e->CurrentValue);
		$this->mes_crea_e->EditValue = $this->mes_crea_e->CurrentValue;
		$this->mes_crea_e->PlaceHolder = RemoveHtml($this->mes_crea_e->caption());

		// moto_e
		$this->moto_e->EditAttrs["class"] = "form-control";
		$this->moto_e->EditCustomAttributes = "";
		if (!$this->moto_e->Raw)
			$this->moto_e->CurrentValue = HtmlDecode($this->moto_e->CurrentValue);
		$this->moto_e->EditValue = $this->moto_e->CurrentValue;
		$this->moto_e->PlaceHolder = RemoveHtml($this->moto_e->caption());

		// customer_id
		$this->customer_id->EditAttrs["class"] = "form-control";
		$this->customer_id->EditCustomAttributes = "";
		$this->customer_id->EditValue = $this->customer_id->CurrentValue;
		$this->customer_id->PlaceHolder = RemoveHtml($this->customer_id->caption());

		// status
		$this->status->EditAttrs["class"] = "form-control";
		$this->status->EditCustomAttributes = "";
		if (!$this->status->Raw)
			$this->status->CurrentValue = HtmlDecode($this->status->CurrentValue);
		$this->status->EditValue = $this->status->CurrentValue;
		$this->status->PlaceHolder = RemoveHtml($this->status->caption());

		// address_e
		$this->address_e->EditAttrs["class"] = "form-control";
		$this->address_e->EditCustomAttributes = "";
		$this->address_e->EditValue = $this->address_e->CurrentValue;
		$this->address_e->PlaceHolder = RemoveHtml($this->address_e->caption());

		// branch_e
		$this->branch_e->EditAttrs["class"] = "form-control";
		$this->branch_e->EditCustomAttributes = "";
		if (!$this->branch_e->Raw)
			$this->branch_e->CurrentValue = HtmlDecode($this->branch_e->CurrentValue);
		$this->branch_e->EditValue = $this->branch_e->CurrentValue;
		$this->branch_e->PlaceHolder = RemoveHtml($this->branch_e->caption());

		// CreatedTime_e
		$this->CreatedTime_e->EditAttrs["class"] = "form-control";
		$this->CreatedTime_e->EditCustomAttributes = "";
		$this->CreatedTime_e->EditValue = FormatDateTime($this->CreatedTime_e->CurrentValue, 8);
		$this->CreatedTime_e->PlaceHolder = RemoveHtml($this->CreatedTime_e->caption());

		// Status_n
		$this->Status_n->EditAttrs["class"] = "form-control";
		$this->Status_n->EditCustomAttributes = "";
		$this->Status_n->EditValue = $this->Status_n->CurrentValue;
		$this->Status_n->PlaceHolder = RemoveHtml($this->Status_n->caption());

		// Call Row Rendered event
		$this->Row_Rendered();
	}

	// Aggregate list row values
	public function aggregateListRowValues()
	{
	}

	// Aggregate list row (for rendering)
	public function aggregateListRow()
	{

		// Call Row Rendered event
		$this->Row_Rendered();
	}

	// Export data in HTML/CSV/Word/Excel/Email/PDF format
	public function exportDocument($doc, $recordset, $startRec = 1, $stopRec = 1, $exportPageType = "")
	{
		if (!$recordset || !$doc)
			return;
		if (!$doc->ExportCustom) {

			// Write header
			$doc->exportTableHeader();
			if ($doc->Horizontal) { // Horizontal format, write header
				$doc->beginExportRow();
				if ($exportPageType == "view") {
					$doc->exportCaption($this->task_id);
					$doc->exportCaption($this->task_description);
					$doc->exportCaption($this->trans_type);
					$doc->exportCaption($this->contact_number);
					$doc->exportCaption($this->email_address);
					$doc->exportCaption($this->customer_name);
					$doc->exportCaption($this->delivery_date);
					$doc->exportCaption($this->delivery_address);
					$doc->exportCaption($this->team_id);
					$doc->exportCaption($this->driver_id);
					$doc->exportCaption($this->task_lat);
					$doc->exportCaption($this->task_lng);
					$doc->exportCaption($this->customer_signature);
					$doc->exportCaption($this->date_created);
					$doc->exportCaption($this->date_modified);
					$doc->exportCaption($this->ip_address);
					$doc->exportCaption($this->auto_assign_type);
					$doc->exportCaption($this->assign_started);
					$doc->exportCaption($this->assignment_status);
					$doc->exportCaption($this->dropoff_contact_name);
					$doc->exportCaption($this->dropoff_contact_number);
					$doc->exportCaption($this->drop_address);
					$doc->exportCaption($this->dropoff_task_lat);
					$doc->exportCaption($this->dropoff_task_lng);
					$doc->exportCaption($this->task_token);
					$doc->exportCaption($this->ratings);
					$doc->exportCaption($this->rating_comment);
					$doc->exportCaption($this->critical);
					$doc->exportCaption($this->souce_e);
					$doc->exportCaption($this->shop_code_e);
					$doc->exportCaption($this->Received_Channel_e);
					$doc->exportCaption($this->PayMethod_e);
					$doc->exportCaption($this->Type_e);
					$doc->exportCaption($this->Request_Code_e);
					$doc->exportCaption($this->Status_e);
					$doc->exportCaption($this->PlanType_e);
					$doc->exportCaption($this->Plan_e);
					$doc->exportCaption($this->Isdn_e);
					$doc->exportCaption($this->serial_sim_handset_e);
					$doc->exportCaption($this->handset_e);
					$doc->exportCaption($this->Connect_Reason_e);
					$doc->exportCaption($this->Price_e);
					$doc->exportCaption($this->Current_Operator_e);
					$doc->exportCaption($this->Current_Plan_Type_e);
					$doc->exportCaption($this->Document_Number_e);
					$doc->exportCaption($this->Document_Type_e);
					$doc->exportCaption($this->assignStaffCode_e);
					$doc->exportCaption($this->Delivery_Type_e);
					$doc->exportCaption($this->assignStaffType_e);
					$doc->exportCaption($this->receiveStaffCode_e);
					$doc->exportCaption($this->receiveStaffType_e);
					$doc->exportCaption($this->connectStaffCode_e);
					$doc->exportCaption($this->connectStaffType_e);
					$doc->exportCaption($this->shopName_e);
					$doc->exportCaption($this->saleOrderCode_e);
					$doc->exportCaption($this->consultantCode_e);
					$doc->exportCaption($this->consultantName_e);
					$doc->exportCaption($this->consultantType_e);
					$doc->exportCaption($this->created_By_e);
					$doc->exportCaption($this->createdBranch_e);
					$doc->exportCaption($this->generated_Code_By_e);
					$doc->exportCaption($this->approve_Paid_By_e);
					$doc->exportCaption($this->Delivery_Note_e);
					$doc->exportCaption($this->Delivery_Code_e);
					$doc->exportCaption($this->Customer_Note_e);
					$doc->exportCaption($this->saleOrderCreateDate_e);
					$doc->exportCaption($this->saleOrderPayDate_e);
					$doc->exportCaption($this->Time_of_Procesing_e);
					$doc->exportCaption($this->Time_of_new_e);
					$doc->exportCaption($this->Time_of_Finished_e);
					$doc->exportCaption($this->KPI_CC_Hour_e);
					$doc->exportCaption($this->KPI_NEW_Hour_e);
					$doc->exportCaption($this->KPI_PROCESING_Hour_e);
					$doc->exportCaption($this->KPI_ALL_Hour_e);
					$doc->exportCaption($this->Kpi_Register_Hour_e);
					$doc->exportCaption($this->Kpi_Bitel_Hour_e);
					$doc->exportCaption($this->AmountGB_e);
					$doc->exportCaption($this->Price_1_e);
					$doc->exportCaption($this->Status_1_e);
					$doc->exportCaption($this->Registered_Date_e);
					$doc->exportCaption($this->Sumary_e);
					$doc->exportCaption($this->Plans_e);
					$doc->exportCaption($this->Isdns_e);
					$doc->exportCaption($this->PlanTypes_e);
					$doc->exportCaption($this->Serials_e);
					$doc->exportCaption($this->Status_2_e);
					$doc->exportCaption($this->Registered_Date_2_e);
					$doc->exportCaption($this->Summary_2_e);
					$doc->exportCaption($this->serial_2_e);
					$doc->exportCaption($this->HandsetCode_e);
					$doc->exportCaption($this->HandsetName_e);
					$doc->exportCaption($this->Status_3_e);
					$doc->exportCaption($this->Summary_3_e);
					$doc->exportCaption($this->fecha_activa_e);
					$doc->exportCaption($this->mes_activa_e);
					$doc->exportCaption($this->SOURCE_OUT_e);
					$doc->exportCaption($this->fecha_crea_e);
					$doc->exportCaption($this->mes_crea_e);
					$doc->exportCaption($this->moto_e);
					$doc->exportCaption($this->customer_id);
					$doc->exportCaption($this->status);
					$doc->exportCaption($this->address_e);
					$doc->exportCaption($this->branch_e);
					$doc->exportCaption($this->CreatedTime_e);
					$doc->exportCaption($this->Status_n);
				} else {
					$doc->exportCaption($this->task_id);
					$doc->exportCaption($this->task_description);
					$doc->exportCaption($this->trans_type);
					$doc->exportCaption($this->contact_number);
					$doc->exportCaption($this->email_address);
					$doc->exportCaption($this->customer_name);
					$doc->exportCaption($this->delivery_date);
					$doc->exportCaption($this->team_id);
					$doc->exportCaption($this->driver_id);
					$doc->exportCaption($this->task_lat);
					$doc->exportCaption($this->task_lng);
					$doc->exportCaption($this->customer_signature);
					$doc->exportCaption($this->date_created);
					$doc->exportCaption($this->date_modified);
					$doc->exportCaption($this->ip_address);
					$doc->exportCaption($this->auto_assign_type);
					$doc->exportCaption($this->assign_started);
					$doc->exportCaption($this->assignment_status);
					$doc->exportCaption($this->dropoff_contact_name);
					$doc->exportCaption($this->dropoff_contact_number);
					$doc->exportCaption($this->drop_address);
					$doc->exportCaption($this->dropoff_task_lat);
					$doc->exportCaption($this->dropoff_task_lng);
					$doc->exportCaption($this->task_token);
					$doc->exportCaption($this->ratings);
					$doc->exportCaption($this->rating_comment);
					$doc->exportCaption($this->critical);
					$doc->exportCaption($this->souce_e);
					$doc->exportCaption($this->shop_code_e);
					$doc->exportCaption($this->Received_Channel_e);
					$doc->exportCaption($this->PayMethod_e);
					$doc->exportCaption($this->Type_e);
					$doc->exportCaption($this->Request_Code_e);
					$doc->exportCaption($this->Status_e);
					$doc->exportCaption($this->PlanType_e);
					$doc->exportCaption($this->Plan_e);
					$doc->exportCaption($this->Isdn_e);
					$doc->exportCaption($this->serial_sim_handset_e);
					$doc->exportCaption($this->handset_e);
					$doc->exportCaption($this->Connect_Reason_e);
					$doc->exportCaption($this->Price_e);
					$doc->exportCaption($this->Current_Operator_e);
					$doc->exportCaption($this->Current_Plan_Type_e);
					$doc->exportCaption($this->Document_Number_e);
					$doc->exportCaption($this->Document_Type_e);
					$doc->exportCaption($this->assignStaffCode_e);
					$doc->exportCaption($this->Delivery_Type_e);
					$doc->exportCaption($this->assignStaffType_e);
					$doc->exportCaption($this->receiveStaffCode_e);
					$doc->exportCaption($this->receiveStaffType_e);
					$doc->exportCaption($this->connectStaffCode_e);
					$doc->exportCaption($this->connectStaffType_e);
					$doc->exportCaption($this->shopName_e);
					$doc->exportCaption($this->saleOrderCode_e);
					$doc->exportCaption($this->consultantCode_e);
					$doc->exportCaption($this->consultantName_e);
					$doc->exportCaption($this->consultantType_e);
					$doc->exportCaption($this->created_By_e);
					$doc->exportCaption($this->createdBranch_e);
					$doc->exportCaption($this->generated_Code_By_e);
					$doc->exportCaption($this->approve_Paid_By_e);
					$doc->exportCaption($this->Delivery_Note_e);
					$doc->exportCaption($this->Delivery_Code_e);
					$doc->exportCaption($this->Customer_Note_e);
					$doc->exportCaption($this->saleOrderCreateDate_e);
					$doc->exportCaption($this->saleOrderPayDate_e);
					$doc->exportCaption($this->Time_of_Procesing_e);
					$doc->exportCaption($this->Time_of_new_e);
					$doc->exportCaption($this->Time_of_Finished_e);
					$doc->exportCaption($this->KPI_CC_Hour_e);
					$doc->exportCaption($this->KPI_NEW_Hour_e);
					$doc->exportCaption($this->KPI_PROCESING_Hour_e);
					$doc->exportCaption($this->KPI_ALL_Hour_e);
					$doc->exportCaption($this->Kpi_Register_Hour_e);
					$doc->exportCaption($this->Kpi_Bitel_Hour_e);
					$doc->exportCaption($this->AmountGB_e);
					$doc->exportCaption($this->Price_1_e);
					$doc->exportCaption($this->Status_1_e);
					$doc->exportCaption($this->Registered_Date_e);
					$doc->exportCaption($this->Sumary_e);
					$doc->exportCaption($this->Plans_e);
					$doc->exportCaption($this->Isdns_e);
					$doc->exportCaption($this->PlanTypes_e);
					$doc->exportCaption($this->Serials_e);
					$doc->exportCaption($this->Status_2_e);
					$doc->exportCaption($this->Registered_Date_2_e);
					$doc->exportCaption($this->Summary_2_e);
					$doc->exportCaption($this->serial_2_e);
					$doc->exportCaption($this->HandsetCode_e);
					$doc->exportCaption($this->HandsetName_e);
					$doc->exportCaption($this->Status_3_e);
					$doc->exportCaption($this->Summary_3_e);
					$doc->exportCaption($this->fecha_activa_e);
					$doc->exportCaption($this->mes_activa_e);
					$doc->exportCaption($this->SOURCE_OUT_e);
					$doc->exportCaption($this->fecha_crea_e);
					$doc->exportCaption($this->mes_crea_e);
					$doc->exportCaption($this->moto_e);
					$doc->exportCaption($this->customer_id);
					$doc->exportCaption($this->status);
					$doc->exportCaption($this->branch_e);
					$doc->exportCaption($this->CreatedTime_e);
					$doc->exportCaption($this->Status_n);
				}
				$doc->endExportRow();
			}
		}

		// Move to first record
		$recCnt = $startRec - 1;
		if (!$recordset->EOF) {
			$recordset->moveFirst();
			if ($startRec > 1)
				$recordset->move($startRec - 1);
		}
		while (!$recordset->EOF && $recCnt < $stopRec) {
			$recCnt++;
			if ($recCnt >= $startRec) {
				$rowCnt = $recCnt - $startRec + 1;

				// Page break
				if ($this->ExportPageBreakCount > 0) {
					if ($rowCnt > 1 && ($rowCnt - 1) % $this->ExportPageBreakCount == 0)
						$doc->exportPageBreak();
				}
				$this->loadListRowValues($recordset);

				// Render row
				$this->RowType = ROWTYPE_VIEW; // Render view
				$this->resetAttributes();
				$this->renderListRow();
				if (!$doc->ExportCustom) {
					$doc->beginExportRow($rowCnt); // Allow CSS styles if enabled
					if ($exportPageType == "view") {
						$doc->exportField($this->task_id);
						$doc->exportField($this->task_description);
						$doc->exportField($this->trans_type);
						$doc->exportField($this->contact_number);
						$doc->exportField($this->email_address);
						$doc->exportField($this->customer_name);
						$doc->exportField($this->delivery_date);
						$doc->exportField($this->delivery_address);
						$doc->exportField($this->team_id);
						$doc->exportField($this->driver_id);
						$doc->exportField($this->task_lat);
						$doc->exportField($this->task_lng);
						$doc->exportField($this->customer_signature);
						$doc->exportField($this->date_created);
						$doc->exportField($this->date_modified);
						$doc->exportField($this->ip_address);
						$doc->exportField($this->auto_assign_type);
						$doc->exportField($this->assign_started);
						$doc->exportField($this->assignment_status);
						$doc->exportField($this->dropoff_contact_name);
						$doc->exportField($this->dropoff_contact_number);
						$doc->exportField($this->drop_address);
						$doc->exportField($this->dropoff_task_lat);
						$doc->exportField($this->dropoff_task_lng);
						$doc->exportField($this->task_token);
						$doc->exportField($this->ratings);
						$doc->exportField($this->rating_comment);
						$doc->exportField($this->critical);
						$doc->exportField($this->souce_e);
						$doc->exportField($this->shop_code_e);
						$doc->exportField($this->Received_Channel_e);
						$doc->exportField($this->PayMethod_e);
						$doc->exportField($this->Type_e);
						$doc->exportField($this->Request_Code_e);
						$doc->exportField($this->Status_e);
						$doc->exportField($this->PlanType_e);
						$doc->exportField($this->Plan_e);
						$doc->exportField($this->Isdn_e);
						$doc->exportField($this->serial_sim_handset_e);
						$doc->exportField($this->handset_e);
						$doc->exportField($this->Connect_Reason_e);
						$doc->exportField($this->Price_e);
						$doc->exportField($this->Current_Operator_e);
						$doc->exportField($this->Current_Plan_Type_e);
						$doc->exportField($this->Document_Number_e);
						$doc->exportField($this->Document_Type_e);
						$doc->exportField($this->assignStaffCode_e);
						$doc->exportField($this->Delivery_Type_e);
						$doc->exportField($this->assignStaffType_e);
						$doc->exportField($this->receiveStaffCode_e);
						$doc->exportField($this->receiveStaffType_e);
						$doc->exportField($this->connectStaffCode_e);
						$doc->exportField($this->connectStaffType_e);
						$doc->exportField($this->shopName_e);
						$doc->exportField($this->saleOrderCode_e);
						$doc->exportField($this->consultantCode_e);
						$doc->exportField($this->consultantName_e);
						$doc->exportField($this->consultantType_e);
						$doc->exportField($this->created_By_e);
						$doc->exportField($this->createdBranch_e);
						$doc->exportField($this->generated_Code_By_e);
						$doc->exportField($this->approve_Paid_By_e);
						$doc->exportField($this->Delivery_Note_e);
						$doc->exportField($this->Delivery_Code_e);
						$doc->exportField($this->Customer_Note_e);
						$doc->exportField($this->saleOrderCreateDate_e);
						$doc->exportField($this->saleOrderPayDate_e);
						$doc->exportField($this->Time_of_Procesing_e);
						$doc->exportField($this->Time_of_new_e);
						$doc->exportField($this->Time_of_Finished_e);
						$doc->exportField($this->KPI_CC_Hour_e);
						$doc->exportField($this->KPI_NEW_Hour_e);
						$doc->exportField($this->KPI_PROCESING_Hour_e);
						$doc->exportField($this->KPI_ALL_Hour_e);
						$doc->exportField($this->Kpi_Register_Hour_e);
						$doc->exportField($this->Kpi_Bitel_Hour_e);
						$doc->exportField($this->AmountGB_e);
						$doc->exportField($this->Price_1_e);
						$doc->exportField($this->Status_1_e);
						$doc->exportField($this->Registered_Date_e);
						$doc->exportField($this->Sumary_e);
						$doc->exportField($this->Plans_e);
						$doc->exportField($this->Isdns_e);
						$doc->exportField($this->PlanTypes_e);
						$doc->exportField($this->Serials_e);
						$doc->exportField($this->Status_2_e);
						$doc->exportField($this->Registered_Date_2_e);
						$doc->exportField($this->Summary_2_e);
						$doc->exportField($this->serial_2_e);
						$doc->exportField($this->HandsetCode_e);
						$doc->exportField($this->HandsetName_e);
						$doc->exportField($this->Status_3_e);
						$doc->exportField($this->Summary_3_e);
						$doc->exportField($this->fecha_activa_e);
						$doc->exportField($this->mes_activa_e);
						$doc->exportField($this->SOURCE_OUT_e);
						$doc->exportField($this->fecha_crea_e);
						$doc->exportField($this->mes_crea_e);
						$doc->exportField($this->moto_e);
						$doc->exportField($this->customer_id);
						$doc->exportField($this->status);
						$doc->exportField($this->address_e);
						$doc->exportField($this->branch_e);
						$doc->exportField($this->CreatedTime_e);
						$doc->exportField($this->Status_n);
					} else {
						$doc->exportField($this->task_id);
						$doc->exportField($this->task_description);
						$doc->exportField($this->trans_type);
						$doc->exportField($this->contact_number);
						$doc->exportField($this->email_address);
						$doc->exportField($this->customer_name);
						$doc->exportField($this->delivery_date);
						$doc->exportField($this->team_id);
						$doc->exportField($this->driver_id);
						$doc->exportField($this->task_lat);
						$doc->exportField($this->task_lng);
						$doc->exportField($this->customer_signature);
						$doc->exportField($this->date_created);
						$doc->exportField($this->date_modified);
						$doc->exportField($this->ip_address);
						$doc->exportField($this->auto_assign_type);
						$doc->exportField($this->assign_started);
						$doc->exportField($this->assignment_status);
						$doc->exportField($this->dropoff_contact_name);
						$doc->exportField($this->dropoff_contact_number);
						$doc->exportField($this->drop_address);
						$doc->exportField($this->dropoff_task_lat);
						$doc->exportField($this->dropoff_task_lng);
						$doc->exportField($this->task_token);
						$doc->exportField($this->ratings);
						$doc->exportField($this->rating_comment);
						$doc->exportField($this->critical);
						$doc->exportField($this->souce_e);
						$doc->exportField($this->shop_code_e);
						$doc->exportField($this->Received_Channel_e);
						$doc->exportField($this->PayMethod_e);
						$doc->exportField($this->Type_e);
						$doc->exportField($this->Request_Code_e);
						$doc->exportField($this->Status_e);
						$doc->exportField($this->PlanType_e);
						$doc->exportField($this->Plan_e);
						$doc->exportField($this->Isdn_e);
						$doc->exportField($this->serial_sim_handset_e);
						$doc->exportField($this->handset_e);
						$doc->exportField($this->Connect_Reason_e);
						$doc->exportField($this->Price_e);
						$doc->exportField($this->Current_Operator_e);
						$doc->exportField($this->Current_Plan_Type_e);
						$doc->exportField($this->Document_Number_e);
						$doc->exportField($this->Document_Type_e);
						$doc->exportField($this->assignStaffCode_e);
						$doc->exportField($this->Delivery_Type_e);
						$doc->exportField($this->assignStaffType_e);
						$doc->exportField($this->receiveStaffCode_e);
						$doc->exportField($this->receiveStaffType_e);
						$doc->exportField($this->connectStaffCode_e);
						$doc->exportField($this->connectStaffType_e);
						$doc->exportField($this->shopName_e);
						$doc->exportField($this->saleOrderCode_e);
						$doc->exportField($this->consultantCode_e);
						$doc->exportField($this->consultantName_e);
						$doc->exportField($this->consultantType_e);
						$doc->exportField($this->created_By_e);
						$doc->exportField($this->createdBranch_e);
						$doc->exportField($this->generated_Code_By_e);
						$doc->exportField($this->approve_Paid_By_e);
						$doc->exportField($this->Delivery_Note_e);
						$doc->exportField($this->Delivery_Code_e);
						$doc->exportField($this->Customer_Note_e);
						$doc->exportField($this->saleOrderCreateDate_e);
						$doc->exportField($this->saleOrderPayDate_e);
						$doc->exportField($this->Time_of_Procesing_e);
						$doc->exportField($this->Time_of_new_e);
						$doc->exportField($this->Time_of_Finished_e);
						$doc->exportField($this->KPI_CC_Hour_e);
						$doc->exportField($this->KPI_NEW_Hour_e);
						$doc->exportField($this->KPI_PROCESING_Hour_e);
						$doc->exportField($this->KPI_ALL_Hour_e);
						$doc->exportField($this->Kpi_Register_Hour_e);
						$doc->exportField($this->Kpi_Bitel_Hour_e);
						$doc->exportField($this->AmountGB_e);
						$doc->exportField($this->Price_1_e);
						$doc->exportField($this->Status_1_e);
						$doc->exportField($this->Registered_Date_e);
						$doc->exportField($this->Sumary_e);
						$doc->exportField($this->Plans_e);
						$doc->exportField($this->Isdns_e);
						$doc->exportField($this->PlanTypes_e);
						$doc->exportField($this->Serials_e);
						$doc->exportField($this->Status_2_e);
						$doc->exportField($this->Registered_Date_2_e);
						$doc->exportField($this->Summary_2_e);
						$doc->exportField($this->serial_2_e);
						$doc->exportField($this->HandsetCode_e);
						$doc->exportField($this->HandsetName_e);
						$doc->exportField($this->Status_3_e);
						$doc->exportField($this->Summary_3_e);
						$doc->exportField($this->fecha_activa_e);
						$doc->exportField($this->mes_activa_e);
						$doc->exportField($this->SOURCE_OUT_e);
						$doc->exportField($this->fecha_crea_e);
						$doc->exportField($this->mes_crea_e);
						$doc->exportField($this->moto_e);
						$doc->exportField($this->customer_id);
						$doc->exportField($this->status);
						$doc->exportField($this->branch_e);
						$doc->exportField($this->CreatedTime_e);
						$doc->exportField($this->Status_n);
					}
					$doc->endExportRow($rowCnt);
				}
			}

			// Call Row Export server event
			if ($doc->ExportCustom)
				$this->Row_Export($recordset->fields);
			$recordset->moveNext();
		}
		if (!$doc->ExportCustom) {
			$doc->exportTableFooter();
		}
	}

	// Get file data
	public function getFileData($fldparm, $key, $resize, $width = 0, $height = 0)
	{

		// No binary fields
		return FALSE;
	}

	// Table level events
	// Recordset Selecting event
	function Recordset_Selecting(&$filter) {

		// Enter your code here
	}

	// Recordset Selected event
	function Recordset_Selected(&$rs) {

		//echo "Recordset Selected";
	}

	// Recordset Search Validated event
	function Recordset_SearchValidated() {

		// Example:
		//$this->MyField1->AdvancedSearch->SearchValue = "your search criteria"; // Search value

	}

	// Recordset Searching event
	function Recordset_Searching(&$filter) {

		// Enter your code here
	}

	// Row_Selecting event
	function Row_Selecting(&$filter) {

		// Enter your code here
	}

	// Row Selected event
	function Row_Selected(&$rs) {

		//echo "Row Selected";
	}

	// Row Inserting event
	function Row_Inserting($rsold, &$rsnew) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Inserted event
	function Row_Inserted($rsold, &$rsnew) {

		//echo "Row Inserted"
	}

	// Row Updating event
	function Row_Updating($rsold, &$rsnew) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Updated event
	function Row_Updated($rsold, &$rsnew) {

		//echo "Row Updated";
	}

	// Row Update Conflict event
	function Row_UpdateConflict($rsold, &$rsnew) {

		// Enter your code here
		// To ignore conflict, set return value to FALSE

		return TRUE;
	}

	// Grid Inserting event
	function Grid_Inserting() {

		// Enter your code here
		// To reject grid insert, set return value to FALSE

		return TRUE;
	}

	// Grid Inserted event
	function Grid_Inserted($rsnew) {

		//echo "Grid Inserted";
	}

	// Grid Updating event
	function Grid_Updating($rsold) {

		// Enter your code here
		// To reject grid update, set return value to FALSE

		return TRUE;
	}

	// Grid Updated event
	function Grid_Updated($rsold, $rsnew) {

		//echo "Grid Updated";
	}

	// Row Deleting event
	function Row_Deleting(&$rs) {

		// Enter your code here
		// To cancel, set return value to False

		return TRUE;
	}

	// Row Deleted event
	function Row_Deleted(&$rs) {

		//echo "Row Deleted";
	}

	// Email Sending event
	function Email_Sending($email, &$args) {

		//var_dump($email); var_dump($args); exit();
		return TRUE;
	}

	// Lookup Selecting event
	function Lookup_Selecting($fld, &$filter) {

		//var_dump($fld->Name, $fld->Lookup, $filter); // Uncomment to view the filter
		// Enter your code here

	}

	// Row Rendering event
	function Row_Rendering() {

		// Enter your code here
	}

	// Row Rendered event
	function Row_Rendered() {

		// To view properties of field class, use:
		//var_dump($this-><FieldName>);

	}

	// User ID Filtering event
	function UserID_Filtering(&$filter) {

		// Enter your code here
	}
}
?>