Esempio n. 1
0
        public static bool SaveBranch(string branchid)
        {
            try
            {
                FileConfig.config.MaChiNhanh = branchid;

                FileConfig.WriteFile();
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Esempio n. 2
0
 public static bool SaveTime(string[] list, DateTime a, DateTime b)
 {
     try
     {
         FileConfig.config.workingtime  = int.Parse(list[0]) * 60 + int.Parse(list[1]);
         FileConfig.config.reportstart  = a;
         FileConfig.config.reportfinish = b;
         FileConfig.WriteFile();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Esempio n. 3
0
        public static bool SaveApi(string reportapi, string updateapi, string apptoken, string usetoken, string codegroup)
        {
            try
            {
                FileConfig.config.reportapi = reportapi;
                FileConfig.config.updateapi = updateapi;
                FileConfig.config.apptoken  = apptoken;
                FileConfig.config.usertoken = usetoken;
                FileConfig.config.codeGroup = codegroup;

                FileConfig.WriteFile();
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }