Пример #1
0
 private void UrlConfigForm_Load(object sender, EventArgs e)
 {
     _printSetting        = PrintSetting.GetInstance();
     this.txtTestUrl.Text = _printSetting.UrlEnvironmentTest;
     this.txtUatUrl.Text  = _printSetting.UrlEnvironmentUat;
     this.txtProUrl.Text  = _printSetting.UrlEnvironmentPro;
 }
Пример #2
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="barcodeId">打印ID</param>
 /// <param name="totalCount">打印数据总量</param>
 public PrintForm(string barcodeId)
 {
     InitializeComponent();
     _barcodeId      = barcodeId;
     _totalCount     = 100;
     _printSetting   = PrintSetting.GetInstance();
     _environmentUrl = _printSetting.UrlEnvironmentTest;
 }
Пример #3
0
 private void BarCodeConfigForm_Load(object sender, EventArgs e)
 {
     _printSetting              = PrintSetting.GetInstance();
     this.txtPrintCount.Text    = _printSetting.PrintCount.ToString();
     this.txtPageWidth.Text     = _printSetting.PaperWidth.ToString();
     this.txtPageHeight.Text    = _printSetting.PaperHeight.ToString();
     this.txtPageLeft.Text      = _printSetting.PageLeft.ToString();
     this.txtPageTop.Text       = _printSetting.PageTop.ToString();
     this.txtBarCodeHeight.Text = _printSetting.BarCodeHeight.ToString();
     this.txtCodeSize.Text      = _printSetting.BarCodeSize.ToString();
     this.txtWordSize.Text      = _printSetting.WordSize.ToString();
     this.txtWordType.Text      = _printSetting.WordType.ToString();
 }
Пример #4
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="barcodeId">打印ID</param>
 /// <param name="totalCount">打印数据总量</param>
 /// <param name="environment">环境区分</param>
 public PrintForm(string barcodeId, int totalCount, string environment)
 {
     InitializeComponent();
     _barcodeId    = barcodeId;
     _totalCount   = totalCount;
     _printSetting = PrintSetting.GetInstance();
     if (String.Equals(environment, "UAT"))
     {
         _environmentUrl = _printSetting.UrlEnvironmentUat;
     }
     else if (String.Equals(environment, "PROD"))
     {
         _environmentUrl = _printSetting.UrlEnvironmentPro;
     }
     else
     {
         _environmentUrl = _printSetting.UrlEnvironmentTest;
     }
 }
Пример #5
0
 /// <summary>
 /// 构造方法
 /// </summary>
 public PrintManager(List <BarCodeBean> dataList)
 {
     _printSetting  = PrintSetting.GetInstance();
     _printDataList = dataList;
 }