/// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmImportExcel_Load(object sender, EventArgs e)
        {
            GridDataBind();
            var gridLocalizer = BuilderGridLocalizer.SetGridLocalizer();

            BuilderGridLocalizer.CustomButtonText(gridViewImportExcel, gridLocalizer);
            gridViewImportExcel.OptionsFind.AlwaysVisible = true;
            gridViewImportExcel.FindPanelVisible          = true;
            gridViewImportExcel.ShowFindPanel();
            txtFileFullPath.Text = BillPrintHelper.GetDefaultExcelPath();
        }
Beispiel #2
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmImportExcelByTemplate_Load(object sender, EventArgs e)
        {
            var result = BillPrintHelper.GetTodaySend();

            if (string.IsNullOrEmpty(result))
            {
                ckTodaySend.Checked = false;
            }
            else
            {
                ckTodaySend.Checked = result == "1";
            }
            var result1 = BillPrintHelper.GetLoadDefaultSendMan();

            if (string.IsNullOrEmpty(result1))
            {
                ckUserDefaultSendMan.Checked = true;
            }
            else
            {
                ckUserDefaultSendMan.Checked = result == "1";
            }
            //var result2 = BillPrintHelper.GetPrintMarkFromServer();
            //if (string.IsNullOrEmpty(result2))
            //{
            //    ckGetServerPrintMark.Checked = false;
            //}
            //else
            //{
            //    ckGetServerPrintMark.Checked = result == "1";
            //}
            GridDataBind();
            var gridLocalizer = BuilderGridLocalizer.SetGridLocalizer();

            BuilderGridLocalizer.CustomButtonText(gridViewImportExcel, gridLocalizer);
            gridViewImportExcel.OptionsFind.AlwaysVisible = true;
            gridViewImportExcel.FindPanelVisible          = true;
            gridViewImportExcel.ShowFindPanel();
            CreatErrorInfoDataTableFromExcel();
            txtFileFullPath.Text = BillPrintHelper.GetDefaultExcelPath();
        }