public bool hasPlaten;                      //是否有平板


        public void GetPaperSource()
        {
            if (twSession.defaultScannerName.ToLower().Contains("kodak"))
            {
                capId = TwCap.CAP_PAPERSOURCE;


                CapItem capItem = twSession.GetCapabilitySupportedDataList(TwCap.CAP_PAPERSOURCE);
                CapType       = capItem.listDataType;
                CurrentIntStr = twSession.GetCapabilityCurrentValue(TwCap.CAP_PAPERSOURCE, ref capType);
                DefaultIntStr = twSession.GetCapabilityDefaultValue(TwCap.CAP_PAPERSOURCE, ref capType);

                if (capItem.list != null && capItem.list.Count == 3)
                {
                    hasPlaten = true;
                    if (valueList == null)
                    {
                        valueList = new ArrayList();
                    }
                    valueList.Clear();
                    valueList.Add(PaperSouceString.ADF);
                    valueList.Add(PaperSouceString.Platen);
                }
                //如果是自动模式,则设置为送纸器
                if (currentIntStr.Equals("0"))
                {
                    bool flag = SetCap("1");
                    if (flag)
                    {
                        currentIntStr = "1";
                    }
                }
                capId = TwCap.ECAP_PAPERSOURCE;
            }
        }