1. 修改 子資料庫、電站編碼
This commit is contained in:
parent
faf77371a7
commit
ed0a777f75
@ -333,13 +333,14 @@ namespace SolarPower.Controllers
|
||||
|
||||
#region 新增公司DB及Table,公司DB編號規則 solar_com_(公司編號共四碼),ex:solar_com_0001
|
||||
|
||||
//var siteDB = "solar_com" + id.ToString().Trim().PadLeft(4, '0');
|
||||
var siteDB = "solar_com" + id.ToString().Trim().PadLeft(4, '0') + "_test";
|
||||
var siteDBFormat = "solar_com{0}_test";
|
||||
|
||||
var siteDB = String.Format(siteDBFormat, id.ToString().Trim().PadLeft(4, '0'));
|
||||
//修改
|
||||
updateCompany = new UpdateCompany()
|
||||
{
|
||||
Id = id,
|
||||
SiteDB = siteDB
|
||||
SiteDB = siteDB,
|
||||
};
|
||||
|
||||
properties = new List<string>()
|
||||
|
||||
@ -250,7 +250,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
var tempSerialNumber = GetLastSerialNumber(currentSerialNumber);
|
||||
|
||||
var codeFormat = "{0}{1}{2}";
|
||||
var codeFormat = "s{0}{1}{2}";
|
||||
|
||||
powerStation = new PowerStation()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user