예제 #1
0
        public void InitFrom()
        {
            this.IsUseWeight = Convert.ToBoolean(commonDAO.GetAppletConfigInt32("启用称重"));

            this._CodePrinter = new CodePrinter(printDocument1);

            // 获取全自动制样机
            this.AutoMaker = commonDAO.GetCMEquipmentByMachineCode(commonDAO.GetAppletConfigString("全自动制样机编码"));
        }
예제 #2
0
        public void InitFrom()
        {
            this.IsUseWeight = Convert.ToBoolean(commonDAO.GetAppletConfigInt32("启用称重"));

            this._CodePrinter = new CodePrinter(printDocument1);

            // 获取全自动制样机
            this.AutoMaker = commonDAO.GetCMEquipmentByMachineCode(commonDAO.GetCommonAppletConfigString(CommonAppConfig.GetInstance().AppIdentifier + "对应制样机"));
        }
예제 #3
0
        /// <summary>
        /// 生成采样机选项
        /// </summary>
        private void CreateSamplerButton()
        {
            foreach (string machineCode in samplerMachineCodes)
            {
                CmcsCMEquipment cMEquipment = commonDAO.GetCMEquipmentByMachineCode(machineCode);
                if (cMEquipment == null)
                {
                    continue;
                }

                RadioButton rbtnSampler = new RadioButton();
                rbtnSampler.Font            = new Font("Segoe UI", 13f, FontStyle.Regular);
                rbtnSampler.Text            = cMEquipment.EquipmentName;
                rbtnSampler.Tag             = cMEquipment;
                rbtnSampler.AutoSize        = true;
                rbtnSampler.Padding         = new System.Windows.Forms.Padding(10, 0, 0, 0);
                rbtnSampler.CheckedChanged += new EventHandler(rbtnSampler_CheckedChanged);

                flpanSamplerButton.Controls.Add(rbtnSampler);
            }
        }