コード例 #1
0
        private static bool Srv2SaveCompany(long?corporationSrv2Id, ref long?companySrv2Id)
        {
            bool returnValue = false;

            if (corporationSrv2Id.HasValue)
            {
                string name              = GetDateString("LSI TF Company SRV2");
                string timeZone          = "US/Eastern";
                string clientUrl         = "http://example.com";
                string clientUrlText     = "My web";
                string country           = "United States";
                string state             = "Texas";
                string city              = "Test City";
                string zipCode           = "13579";
                string adrs1             = "f";
                string adrs2             = string.Empty;
                long   srv2CorporationId = corporationSrv2Id.Value;

                string logoName = string.Empty;
                byte[] logo     = null;

                returnValue = Srv2Bll.SaveCompany(name, timeZone, clientUrl, clientUrlText, logo, logoName,
                                                  country, state, city, zipCode, adrs1, adrs2, srv2CorporationId,
                                                  ref companySrv2Id);
            }
            return(returnValue);
        }
コード例 #2
0
        private static bool Srv2SaveCorporation(ref long?corporationSrv2Id)
        {
            bool   returnValue;
            string name = GetDateString("LSI TF Corporation SRV2");

            returnValue = Srv2Bll.SaveCorporation(name, ref corporationSrv2Id);
            return(returnValue);
        }