示例#1
0
        private void SaveSetting()
        {
            DriverPicCaptureConfig config = new DriverPicCaptureConfig();

            config.PicPath    = this.txtPicPath.Text;
            config.PicExpPath = this.txtExportPath.Text;
            StaticCacheManager.SaveConfig <DriverPicCaptureConfig>(config);
        }
示例#2
0
        public DriverPicCapture()
        {
            InitializeComponent();
            this.InitOnConstruct();
            DriverPicCaptureConfig config = StaticCacheManager.GetConfig <DriverPicCaptureConfig>();

            set = StaticCacheManager.GetConfig <CapturePhotoSet>();
            if (set.BgRgbEnable)
            {
                transColor = Color.FromArgb(set.BgRgbR, set.BgRgbG, set.BgRgbB);
            }
            this.picPic.Size        = new Size(set.CapWidth + 2, set.CapHeight + 2);
            this.Height             = this.picPic.Location.Y + set.CapHeight + 40;
            this.txtPicPath.Text    = config.PicPath;
            this.txtExportPath.Text = config.PicExpPath;
            tw = new Twain();
            tw.Init(this.Handle);
        }
示例#3
0
        private string GetFileName(string type, string idcard)
        {
            DriverPicCaptureConfig config = StaticCacheManager.GetConfig <DriverPicCaptureConfig>();
            ArrayList list = FT.DAL.Orm.SimpleOrmOperator.QueryConditionList <FT.Windows.CommonsPlugin.Dict>(" where c_text='" + type + "'");

            if (list.Count == 1)
            {
                type = ((FT.Windows.CommonsPlugin.Dict)list[0]).Value;
            }
            else
            {
                return(string.Empty);
            }
            if (type != "A")
            {
                return(Path.Combine(config.PicPath, type + idcard + ".jpg"));
            }
            else
            {
                return(Path.Combine(config.PicPath, idcard + ".jpg"));
            }
        }
示例#4
0
 private void SaveSetting()
 {
     DriverPicCaptureConfig config = new DriverPicCaptureConfig();
     config.PicPath = this.txtPicPath.Text;
     config.PicExpPath = this.txtExportPath.Text;
     StaticCacheManager.SaveConfig<DriverPicCaptureConfig>(config);
 }