package ibase.e12ria.client;

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 boolean IS_FAV_MENU = false; //added by Vikas Lagad on 19.10.18[to check Favourite menus]
	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;
	// Added by Sandesh on 23.02.2016 [Reqest Id:S15KBAS001] Start	
	public static String isPasswordStore = "0";
	// Added by Sandesh on 23.02.2016 [Reqest Id:S15KBAS001] End	
	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;
    public static String applDateTimeFormat;
    public static String dispDateTimeFromat;//Added for fixing e12mobile compile bug on 02-JUNE-21
	// 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 welcomeMsg;
	public static String objName; 
	public static String objType; 
	public static String deptCode;
	public static String siteCode;
	public static String entityCode;
	public static String itemSer;
	
	//Added by Harshada on 10 DEC 12 [creating user connections on login]START
	public static String userLevel;
	//Added by Harshada on 10 DEC 12 [creating user connections on login]END
	
	//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;
	// Added by Sandeshs 09-Feb-2016 [Req:S15JBAS002 Social Post] start
	public static String userName;
	// Added by Sandeshs 09-Feb-2016 [Req:S15JBAS002 Social Post] end
	//Added By Sanket J on 04/08/17 for getting userType if employee is not present for password change[Start]
	public static String userType;
	//Added By Sanket J on 04/08/17 for getting userType if employee is not present for password change[End]
	//Added by Savita Yadav on 8-04-2015 [ for Change password UI ]- Start
	public static String minPwdLen;
	//Added by Savita Yadav on 8-04-2015 [ for Change password UI ]- End
	
	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;
	

	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 String BUILD_VERSION;
	
	//Added by Harshada on 27th Oct 2012 [creating user connections on login]
	public static String conApplNm;
	
	//Added by Pooja S on 11-oct-2019 [To Module name should be display in grey with application change icon ] Start
	public static String applicationGroup;
	public static String applDescr;
	//Added by Pooja S on 11-oct-2019 [To Module name should be display in grey with application change icon ] End

	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;
	public static final int TABLE_FORM_NO = -2;
	//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;
	public static int CONTENTS_SCROLL_TOP = 0;					//Added by Sandeep S. on 22-11-16 [To resolve DCR scroll issue]
	//Added By Prajyot on 11OCT13 [BMR Wizard]
	public static String bmrObjs;
	
	//Changed by Reema on 13-May-15 [Added to restrict feeds from reopening]
	public static String feedPanelId = "";
	//Changed by Reema on 13-May-15 [Added to restrict feeds from reopening]-End
	//Added By Prajyot[New object Calendar for MAP]Start
	//Changed By Suraj on 01-Jun-2016 [ To set applDateTime and applDate form from DateFormat.xml ]
	//public static String applDateTime = "dd-MMM-yyyy HH:mm:ss";
	//public static String applDate = "dd-MMM-yyyy";
	public static String applDateTime;
	public static String applDate;
	// Added by Reema on 11-Sep-15[for GeoFencing]-Start
	public static String GEO_FENCE_ENABLED;
	public static String GEO_FENCE_RADIUS;
	public static String GEO_FENCE_ACCURACY;
	// Added by Reema on 11-Sep-15[for GeoFencing]-End
	//public static String currentGeoPos = "";
    public static String currentGeoPos = "0, 0";		//Changed default value to "0, 0"   

	//Added by Prajyot [W15HMIT002 - GPS_ENFORCED Implementation]
	//public static String GPS_ENABLED;
	//public static String GPS_ENFORCED;
	public static String GEO_POS_OPTION = "0";
	
	public static String NETWORK_OPTION = "1";		//Added by Sagar B. for offline related changes[09-Feb-19] 
	
	// Added by Sandeshs 21-Jun-2016 [Req:W15BSUN011] START
	public static String defaultMenu;
	// Added by Sandeshs 21-Jun-2016 [Req:W15BSUN011] END
	
	//Added by Parikshit on 07/07/16 [set global db date format-S16ASUN001] start
	//public static String dbDateFormat = "dd-MMM-yyyy";
	//Changed by Pankaj t on 05-08-2021 set dbDateFormat as per DateFormat.xml because of date parsing error
	public static String dbDateFormat = "yyyy-MM-dd";
	//public static String applColor = "blue"; //HExCOLOR
	public static String applColor ;
	//Added by Pooja on 14/09/19 [set gradient color]
	public static String applGradientColor;
	//Added by Parikshit on 07/07/16 [set global db date format-S16ASUN001] end
	//Added by Parikshit on 11/02/16 [set global color for image  ] end
	public static String applicationColor = "blue" ;//temp
	//Added by Parikshit on 11/02/16 [set global color for image] end
	//Added by sunny soni on 17-OCT-16 for set variable app launching start
	public static int onApplaunch = 0;
	//Added by sunny soni on 17-OCT-16 for set variable app launching end
	//Added by Suraj on 26-10-2016 to call wizard in Calendar
	public static String CALL_FROM = "MOBILE";	
	public static String reqParamStr = "";//Added by sunny soni on 14-OCT-16 
	public static boolean objLinktype = false; //Added by sunny soni for set objlink for displaying homePage on 20-DEC-16
	//Added By Ajinkya Gopalkar on 6-Jan-16[For checking gps after defined interval]
	public static boolean GEOPOS_STATUS = false;
	//Added by Prasad on 02/02/17 [for common component related changes]
	public static String userTheme = "GALAXY";
	//Added By Suraj on 15-03-2017 [To implement slideMenuPanel ]Start
	public static String descriptionDetails  = "";
	public static String featureOptions = "";
	//Added By Suraj on 15-03-2017 [To implement slideMenuPanel ]End
	public static int columnMinLength;//added by vishal pathare for compact view related changes in Browser
	
	//Added By Ajinkya Gopalkar for setting Data mode value - Start 
	protected static String dataMode = "";
	public static String getDataMode() {
		return dataMode;
	}

	public static void setDataMode(String dataMode) {
		E12Constants.dataMode = dataMode;
	}
	//Added By Ajinkya Gopalkar for setting Data mode value - End 
	//Added BY Suraj for GWT Calendar updations
	public static String changedPKFieldNames = "";
	public static String changedPKFieldValues = "";
	public static String calDBRName = "";
	public static String currAppName = "";
	//added by vishal pathare on 13.4.18 for[site wise enterprise image related changes]
	public static String enterprise="";
	public static String social_opt="";
	//Added by Sagar B. for storing current address in table[16-Apr-18]
	public static String currentGeoPosName = "";
	
	public static String geoPosAccuracy = "";		//Added by Sagar B. to set GEOPOS_ACCURACY and setting values in auto mode[23-Jul-18]
	//Added by Pankaj T. on 16-11-18 for console configuration if 1 then print console only
	public static String clientDebugLevel = "1";
	//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";
	public static int PAGE_SIZE = 20; //Added by Bhupendra on 06-08-18 for Pagination Implementation.
	public static String autoSync = "Y"; // Added by Pankaj R on 25-FEB-19 to store value of auto sync in E12Constant from ibase.xml]
	//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("Sunny***Exception::[ "+e.getMessage()+" ]");
			//e.printStackTrace();
		}
		E12CommonUtils.printOnConsole("Sunny***Final editedData::[ "+loginDetails+" ]");
		return loginDetails;
	}
	//Added by sunny soni for getting login details for presentation player of resolving file downloading issue[End]
	
	//Added by Pratheek on 04-02-19[]to store the fin_entity and facilty_code on login-Start
	public static String facility_code ="";
	public static String fin_entity ="";
	//Added by Pratheek on 04-02-19[]to store the fin_entity and facilty_code on login-End
	public static String empFName;
	public static String empMName;
	public static String empLName;
	
	// Added by Pravin K on 19-Feb-19 [To storing application hash code] START
	// 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 Pravin K on 19-Feb-19 [To storing application hash code] END
	//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 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]
}