package ibase.e12ria.client;

import java.util.HashMap;

import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.Window.ScrollEvent;
import com.google.gwt.user.client.ui.FlowPanel;

public class E12Constants {

	public static I18NConstants constants = GWT.create(I18NConstants.class);
	public static String editFlag; //added by vikas lagad on 21.8.18 [to show back label on view mode]
	public static String userID;
	public static String passwordSha256;
	public static String profileID;
//	public static String applnName;
	public static String empDesignation;
	public static String empDivision;
	public static String empHeadQuat;
	public static String empDOJ;
	public static String dispDate;
	// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] Start
	public static String authenticateStatus;
	// Added by Dnyaneshwar chavan on 21/DEC/2012 [Add one data member] End
	public static String GEO_FENCE_ENABLED;
	public static String welcomeMsg;
	public static String objName;
	public static String objTitle;
	public static String deptCode;
	public static String siteCode;
	public static String entityCode;
	public static String itemSer;
	public static String applDateTimeFormat;
	//Added by Harshada on 10 DEC 12 [creating user connections on login]START
	public static String userLevel;
	public static String userName;
	//Added by Harshada on 10 DEC 12 [creating user connections on login]END
	public static String defaultMenu;
	//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]START
	public static String siteDescr;
	public static String deptDescr;
	public static String emailIdOff;
	public static String empCode;
	public static String empName;
	public static int PAGE_SIZE = 10;
	//Added by Dnyaneshwar Chavan on 30-OCT-14 [ Change password not working in native interface ] Start
	public static String empFName;
	public static String empMName;
	public static String empLName;
	//Added by Dnyaneshwar Chavan on 30-OCT-14 [ Change password not working in native interface ] Start
	public static int CONTENTS_SCROLL_TOP = 0;					//Added by Sandeep S. on 22-11-16 [To resolve DCR scroll issue]
	public static String reportTo;
	public static String stanCode;
	public static String userCountry;
	public static String userLanguage;
	//Added by Harshada on 6 MAR 2013 [Get all user information on authentication]END

	public static String HK_CANCEL;
	public static String HK_DESELECT;
	public static String HK_DONE;
	public static String HK_PREV;
	public static String HK_NEXT;
	public static String HK_FINISH;
	public static String HK_HEADERBUTTON;

	//Added by Prajyot [W15HMIT002 - GPS_ENFORCED Implementation]
	//Commented by Sagar B. on [22-Jan-18]
	//public static String GPS_ENABLED;
	//public static String GPS_ENFORCED;
	public static String GEO_POS_OPTION = "0";		//Added by Sagar B. on [22-Jan-18]
	public static String NETWORK_OPTION = "1";		//Added by Sagar B. for offline related changes[09-Feb-19] 
	//Added by Prajyot on 12/FEB/2013 [ To keep track of Local Buttons : Add buttons panel in buttonPanelHMap with key LOCAL_FORM_NO a non-existing form]

	public static final int TABLE_FORM_NO = -2;
	public static String CMD_CANCEL;
	public static String CMD_DESELECT;
	public static String CMD_DONE;
	public static String CMD_PREV;
	public static String CMD_NEXT;
	public static String CMD_FINISH;
	public static Boolean objLinktype = false; //Added by sunny soni for set objlink for displaying homePage on 20-DEC-16
	public static String BUILD_VERSION;

	//Added by Harshada on 27th Oct 2012 [creating user connections on login]
	public static String conApplNm;

	public static final String MANDATORY = "mandatory";
	public static final String PROTECT = "protect";

	public static String USER_CONNECTION;
	public static String hostUrl;

	//Added by Prajyot on 12/FEB/2013 [ To keep track of Local Buttons : Add buttons panel in buttonPanelHMap with key LOCAL_FORM_NO a non-existing form]
	public static final int LOCAL_FORM_NO = 0;

	//Added by Prajyot on 05/MAR/2013 [ MO2KSUN001 : Set Header fixed by detecting Android version ]
	public static final String ANDROID_VERSION = "3.1";
	public static boolean IS_FEED_FORM = false;
	public static int SCROLL_TOP = 0;
	public static String isTNCInitiated;

	//Added by Prajyot on 19/DEC/2013 [To make use of ApplDate format]
	public static String applDate;

	public static String userTheme;
	public static String uxInterface;//Added by Vishal Pathare on 12-AUG-2016 [global use <ux_interface>] value for theme interface]

	public static String isClearCache;

	public static String applDescr; //Added by Reema on 4-jun-15[for application description]
	// added by mahesh saggam on 20-NOV-19 [to implement application switch logic]
	public static String applDescription;

	//Added By Prajyot on 05-JUN-2015 [Entity Contact Details for SSP]
	public static String allowChgAccount;
	public static String profileDescr;
	public static String chgEntityDescr;
	//Added by Nilesh Soor on 20/05/2015 [ For GWT-Calendar ]
	public static String applDateTime;
	//Changed by nikita on 12-Apr-17 [Date format should be as per the definition, it must read from DateFormat.xml]
	//public static String dispDateTimeFromat = "dd-MMM-yyyy HH:mm:ss";
	public static String dispDateTimeFromat;
	public static String isPasswordStore = "0";
	public static String currentGeoPos;
	public static String enableGeoPosition = "false";

	//Added By Prasad on 16/10/15 [set global application color]
	public static String applColor;//Hexcolor
	//Added by Parikshit on 23/06/16 [set global db date format]
	//Added by Sanket J on 12/2/16 [set global Application color for image]
	public static String applicationColor ;
	// added by mahesh saggam on 05-NOV-19 [UI related changes in slide menuPanel]
	public static String lastApplColor ;
	public static String applicationName;//added by vishal pathare on 17.3.17 for solr url
	//Added by Pooja.s on [29-oct-2018] to get the AppGroup Start
	public static String applicationGroup;
	//Added by nikita on 12-Apr-17 [Date format should be as per the definition, it must read from DateFormat.xml]
//	public static String dbDateFormat = "dd-MMM-yyyy";
	public static String dbDateFormat;
	//Added By Suraj on 25-10-2016 [To set caller interface for GWT calendar]Start
	public static String CALL_FROM = "BROWSER";
	public static String objType;
	//Added By Suraj on 25-10-2016 [To set caller interface for GWT calendar]End
	//Added By SurajBhandvale on 18-10-2016 [For Auto refresh transaction data in Feed and Grid view : For Recent Activity related changes ]Start
	public static String updatedTransPKValue;
	public static String updatedXMLString;
	public static boolean isUpdtTrans = false;
	public static boolean isAddTrans = false;
	public static String newTranUpdtFlag;
	public static String changedPKFieldNames = "";
	public static String changedPKFieldValues = "";
	/*public static int startPage = 0;
	public static int endPage = 10;*/
	//Added By SurajBhandvale on 18-10-2016 [For Auto refresh transaction data in Feed and Grid view : For Recent Activity related changes ]End
	public static String feedPanelId;
	public static int onApplaunch;
	public static String reqParamStr = "";//Added by sunny soni on 14-OCT-16
	//Added By Ajinkya Gopalkar on 6-Jan-16[For checking gps after defined interval]
	public static boolean GEOPOS_STATUS = true;
	public static String calDBRName = "";
	public static HashMap<String, String> objDetailMap = new HashMap<String, String>();
	public static int columnMinLength=325;//added by vishal pathare on 13.4.17 [for divide freeForms in columns by min-length].
	public static String userType;//Added By Sanket J on 04/08/17 for getting userType from users
	public static String featureOptions = ""; //Added by Pravin K on 11-8-17 for hide social icon
	public static int pageSize = 100;//added by samadhan to implement incremental search
	// Added by Pankaj R on 26-Oct-17 to show client logo basd on enterprise value
	public static String enterprise; //Added by Pankaj R on 14-11-17 for enterprise logo
	public static String social_opt; // Added by Jay to get Social_opt from Enterprise
	//Added by Shrutika on 05-02-18 for update city value when change the site code.
	public static String city;
	//Added by Shrutika on 14-02-18 for update fin_entity.
	public static String fin_entity;
	//Added by Pratheek on 28-01-19[ to store the facility code value in reports]-Start
	public static String facility_code;
	//Added by Pratheek on 28-01-19[ to store the facility code value in reports]-End
	//Added by Pankaj T. on 16-11-18 for console configuration if 1 then print console only
	public static String clientDebugLevel;
	//Added By Pankaj T. on 18-11--2020 for removing weak account lock vulnerability - if user wrongly enter password more than 5 times then lock the account and send new password on email/mobile and unlock account using new password
	public static String wrongLoginCount = "5";
	//Added by shrutika on 13-08-19 [Start] for Explore option to be added in home screen and report.
	public static String licenseKey;
	
	//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[Start]
	public static JSONObject getLoginDetails()
	{
		JSONObject loginDetails = new JSONObject();
		try
		{
			loginDetails.put("USER", new JSONString(E12Constants.userID));
			loginDetails.put("PASSWORD", new JSONString(E12Constants.passwordSha256));
			loginDetails.put("SERVER_IP", new JSONString(E12Constants.hostUrl));
		}
		catch (Exception e) 
		{
			E12CommonUtils.printOnConsole("Exception::[ "+e.getMessage()+" ]");
			//e.printStackTrace();
		}
		E12CommonUtils.printOnConsole("Final editedData::[ "+loginDetails+" ]");
		return loginDetails;
	}
	//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[End]
	// Added by Abhishek T on 19-Feb-19 For storing application hash code
	// As recommended by google play store service, the application hash code
	// must be set in incoming TOP message
	public static String APPLICATION_HASH_CODE;
	//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]START
	public static String IS_ALLOW_OFFLINE_EDIT = "Y";
	public static String IS_ALLOW_OFFLINE_DELETE = "Y";
	//Added by Sagar B. to set offline edit/delete configuration enterprise-wise[13-Mar-19]END
	//Added by sunny soni for getting upto Row Number for lazy loading in workflow[Start]
	public static int uptoRowNum ;
	//Added by sunny soni for getting upto Row Number for lazy loading in workflow[End]
	//Added by Sagar B. for multi tenant serach in SOLR [05-Apr-19]START
	public static String searchDomain;
	public static JSONObject SOLR_SEARCH_CONFIG = null;
	//Added by Sagar B. for multi tenant serach in SOLR [05-Apr-19]END

	//Added by Sainath T. on 11-JUN-19 [For Cross site scripting filter]-Start
	public static String xssFilter;
	//Added by Sainath T. on 11-JUN-19 [For Cross site scripting filter]-End
	//Added by Pooja S on 21-August-2019 [To show the Developer Console option only to the userType of D(Developer) ]
	public static String lastSelectedMenuOpt;
    //Added as per KB sir changes for native header change[Start]
	public static String mode = "";
	public static boolean isNativeMode = false;
    //Added as per KB sir changes for native header change[End]
    public static String bmrObjs;
	//Added by Pankajt T on 14-09-2020 for The user icon which shows detail information about user should also show Login using User id/Mobile/email and user_id/mobile/email value
    public static String authenticatedUsing;
}
