Ejemplo n.º 1
0
        private void SetEleInfo(ISheet sheet, ICellStyle style, PostElectrodenfo eleInfo)
        {
            ElectrodeModel model = eleInfo.GetElectrodeModel();

            ExcelUtils.SetValue(sheet, style, 3, 0, model.MoldInfo.MoldNumber);
            ExcelUtils.SetValue(sheet, style, 3, 2, model.EleInfo.EleName);
            if (model.EleInfo.CrudeInter != 0)
            {
                ExcelUtils.SetValue(sheet, style, 3, 12, model.EleInfo.CrudeInter);
            }
            if (model.EleInfo.DuringInter != 0)
            {
                ExcelUtils.SetValue(sheet, style, 3, 14, model.EleInfo.DuringInter);
            }
            if (model.EleInfo.FineInter != 0)
            {
                ExcelUtils.SetValue(sheet, style, 3, 16, model.EleInfo.FineInter);
            }
            if (eleInfo.GetIsInter())
            {
                ExcelUtils.SetValue(sheet, style, 4, 16, "已扣");
            }
            else
            {
                ExcelUtils.SetValue(sheet, style, 4, 16, "未扣");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 设置电极
        /// </summary>
        /// <param name="model"></param>
        /// <param name="sheet"></param>
        /// <param name="style"></param>
        private void SetEleMoldInfoToExcel(PostElectrodenfo eleInfo, ISheet sheet, ICellStyle style)
        {
            ElectrodeModel model = eleInfo.GetElectrodeModel();

            ExcelUtils.SetValue(sheet, style, 3, 0, model.MoldInfo.MoldNumber);
            ExcelUtils.SetValue(sheet, style, 2, 2, "电极名");
            ExcelUtils.SetValue(sheet, style, 3, 2, model.EleInfo.EleName);
            ExcelUtils.SetValue(sheet, style, 3, 5, "A");
        }