using UnityEngine; using UnityEngine.UI; using TMPro; public class infoClient : MonoBehaviour { // public void open(){ // print("-----from info-----"); // print("_G.status===="+_G.status); // print("_G.ClientInfo===="+_G.ClientInfo); // print("_G.JobNumber===="+_G.JobNumber); // Get.o3("HIDER","Form","Go").SetActive(false); // Get.o3("HIDER","Form","BtnSkip").SetActive(true); // foreach(Transform check in Get.o1("CheckOK").transform) // { // check.GetComponent().alpha=0; // } // foreach(Transform check in Get.o1("CheckError").transform) // { // check.GetComponent().alpha=0; // } // Form.setStatus(); // //if(_G.status!="nJN") // FillForm(); // } // public static void FillForm(){ // if(_G.ClientInfo!="" ){ // string[] info=_G.ClientInfo.Split('_'); // Get.o3("HIDER","Form","Instruction").GetComponent().text="# "+_G.MemberNumber+"-"+info[0]; // //Get.o3("HIDER","Form","JobN").GetComponent().text="# "+_G.MemberNumber+"-"+info[0]; // Get.o3("HIDER","Form","JobN").GetComponent().text="# "+_G.MemberNumber+"-"+info[0]; // Get.o3("Form","Feild","I1").GetComponent().text=info[1]; // Get.o3("Form","Feild","I2").GetComponent().text=info[2]; // Get.o3("Form","Feild","I3").GetComponent().text=info[3]; // Get.o3("Form","Feild","I4").GetComponent().text=info[4]; // Get.o3("Form","Feild","I5").GetComponent().text=info[5]; // Get.o3("Form","Feild","I6").GetComponent().text=info[6]; // Get.o3("Form","Feild","I7").GetComponent().text=info[7]; // Get.o3("Form","Feild","I8").GetComponent().text=info[8]; // Get.o3("Form","Feild","I9").GetComponent().text=info[9]; // } // else EmptyForm(); // } // public static void EmptyForm(){ // Get.o3("HIDER","Form","Instruction").GetComponent().text=""; // Get.o3("HIDER","Form","JobN").GetComponent().text=""; // Get.o3("Form","Feild","I1").GetComponent().text=""; // Get.o3("Form","Feild","I2").GetComponent().text=""; // Get.o3("Form","Feild","I3").GetComponent().text=""; // Get.o3("Form","Feild","I4").GetComponent().text=""; // Get.o3("Form","Feild","I5").GetComponent().text=""; // Get.o3("Form","Feild","I6").GetComponent().text=""; // Get.o3("Form","Feild","I7").GetComponent().text=""; // Get.o3("Form","Feild","I8").GetComponent().text=""; // Get.o3("Form","Feild","I9").GetComponent().text=""; // } // public static void save(string JN){ // string salle=Get.o3("Form","Feild","I1").GetComponent().text; // string des=Get.o3("Form","Feild","I2").GetComponent().text; // string name=Get.o3("Form","Feild","I3").GetComponent().text; // string add=Get.o3("Form","Feild","I4").GetComponent().text; // string town=Get.o3("Form","Feild","I5").GetComponent().text; // string cp=Get.o3("Form","Feild","I6").GetComponent().text; // string email=Get.o3("Form","Feild","I7").GetComponent().text; // string phone=Get.o3("Form","Feild","I8").GetComponent().text; // string note=Get.o3("Form","Feild","I9").GetComponent().text; // _G.ClientInfo=JN+"_"+salle+"_"+des+"_"+name+"_"+add+"_"+town+"_"+cp+"_"+email+"_"+phone+"_"+note+"_"+System.DateTime.Now.ToString("MM/dd/yyyy"); // _G.FileName=_G.MemberNumber+"-"+JN; // //_G.FileName=JN; // } // public void addname() // { // if (_P.AutoSave_RefId) // check from external environment (ex: cieblink) // { // DOIT.CloseALLPNL(); // LoadHistory.Instance.OpenPanel(); // return; // } // if(Get.o2("PNL","SAVEpnl").activeInHierarchy==true) // { // Get.o3("PNL","SAVEpnl","InputLocalName").GetComponent().text=_G.FileName; // if(_G.FileName=="FN")Get.o3("PNL","SAVEpnl","InputLocalName").GetComponent().text=""; // } // if(Get.o2("PNL","SAVEWEBpnl").activeInHierarchy==true) // { // if(_G.status=="JN"){ // if(Get.o2("PNL","SAVEWEBpnl").transform.Find("S_EnterEmail")!=null)Get.o3("PNL","SAVEWEBpnl","S_EnterEmail").name="S_YourFilename"; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().alpha=0; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().interactable=false; // Get.o3("PNL","SAVEWEBpnl","FileText").GetComponent().text=_G.FileName; // Get.o3("PNL","SAVEWEBpnl","ButtonOK").GetComponent().alpha=1; // } // if(_G.status=="nJN"){ // if(Get.o2("PNL","SAVEWEBpnl").transform.Find("S_YourFilename")!=null)Get.o3("PNL","SAVEWEBpnl","S_YourFilename").name="S_EnterEmail"; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().alpha=1; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().interactable=true; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().text=_G.FileName; // if(_G.FileName=="FN" || _G.FileName==""){ // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().text=""; // Get.o3("PNL","SAVEWEBpnl","ButtonOK").GetComponent().alpha=0; // } // if(_G.FileName!="FN" && emailcheck.ok(_G.FileName)) Get.o3("PNL","SAVEWEBpnl","ButtonOK").GetComponent().alpha=1; // } // if(_G.status=="old"){ // if(Get.o2("PNL","SAVEWEBpnl").transform.Find("S_YourFilename")!=null)Get.o3("PNL","SAVEWEBpnl","S_YourFilename").name="S_EnterEmail"; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().alpha=1; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().interactable=true; // Get.o3("PNL","SAVEWEBpnl","InputCloudName").GetComponent().text=_G.FileName; // if(_G.FileName!="FN" && emailcheck.ok(_G.FileName)) Get.o3("PNL","SAVEWEBpnl","ButtonOK").GetComponent().alpha=1; // } // } // } }