提交当前本机整理版本
This commit is contained in:
@@ -954,4 +954,34 @@ namespace Lskj.PubBomImportNew
|
||||
string pattern = @"^(.*?)(\d+)?$";
|
||||
var match = Regex.Match(fileName, namepattern);
|
||||
code = "";
|
||||
spec = "";
|
||||
spec = "";
|
||||
name = "";
|
||||
extension = "";
|
||||
bb = "";
|
||||
bc = 0;
|
||||
if (match.Success)
|
||||
{
|
||||
code = match.Groups[1].Value.Trim();
|
||||
spec = match.Groups[2].Value.Trim();
|
||||
name = match.Groups[3].Value.Trim();
|
||||
extension = match.Groups[4].Value.Trim();
|
||||
match = Regex.Match(spec, pattern);
|
||||
if (match.Success)
|
||||
{
|
||||
string childsourceCode = match.Groups[1].Value;
|
||||
int.TryParse(match.Groups[2].Value, out bc);//版次
|
||||
Match bbMatch = Regex.Match(childsourceCode, @"^.*?([A-Za-z]+)(\d*)$");
|
||||
if (bbMatch.Success)
|
||||
{
|
||||
bb = bbMatch.Groups[1].Value.Trim();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user