Beispiel #1
0
 public static void SetWriter(AdditionalInfo addiInfo)
 {
     if (_PGWriter == null)
     {
         _addiInfo = addiInfo;
         _PGWriter = new PGWriter(_addiInfo.outPath + "\\");
     }
 }
Beispiel #2
0
        public static void Output()
        {
            string head = "1\t建筑名称\t" + _addiInfo.bldgName + "\t行数\t" + _num.ToString()
                          + "\t层数\t" + (MyLevel.GetLevelNum() - 1).ToString() + "\t\t\t\t\t\r\n"
                          + "PG名称\t编码\t方向\t是否自定义价格\t拼音后缀\t单价(美元)\t";
            int i = 1;

            while (i < MyLevel.GetLevelNum())
            {
                head += i.ToString() + "\t";
                ++i;
            }
            head      += "\r\n";
            _PGInfo    = head + _PGInfo;
            _fileName += "_" + _addiInfo.rvtFileName + ".txt";
            IOHelper.Output(_PGInfo, _fileName, _directory);
            _PGWriter = null;
        }