コード例 #1
0
        private string AddDJtoYL(XSDJModel xsdj)
        {
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            dictionary.Add("BH", xsdj.BH);
            dictionary.Add("GFMC", xsdj.GFMC);
            dictionary.Add("GFSH", xsdj.GFSH);
            dictionary.Add("GFDZDH", xsdj.GFDZDH);
            dictionary.Add("GFYHZH", xsdj.GFYHZH);
            dictionary.Add("XSBM", xsdj.XSBM);
            dictionary.Add("YDXS", xsdj.YDXS);
            dictionary.Add("JEHJ", xsdj.JEHJ);
            dictionary.Add("DJRQ", xsdj.DJRQ);
            dictionary.Add("DJYF", xsdj.DJYF);
            dictionary.Add("DJZT", xsdj.DJZT);
            dictionary.Add("KPZT", xsdj.KPZT);
            dictionary.Add("BZ", xsdj.BZ);
            dictionary.Add("FHR", xsdj.FHR);
            dictionary.Add("SKR", xsdj.SKR);
            dictionary.Add("QDHSPMC", xsdj.QDHSPMC);
            dictionary.Add("XFYHZH", xsdj.XFYHZH);
            dictionary.Add("XFDZDH", xsdj.XFDZDH);
            dictionary.Add("CFHB", xsdj.CFHB);
            dictionary.Add("DJZL", xsdj.DJZL);
            dictionary.Add("SFZJY", xsdj.SFZJY);
            dictionary.Add("HYSY", xsdj.HYSY);
            if (this.baseDAO.updateSQL("aisino.Fwkp.Wbjk.XSDJAddYL", dictionary) > 0)
            {
                return("OK");
            }
            return("eDJ");
        }
コード例 #2
0
ファイル: DJXGdal.cs プロジェクト: SoL-Alucard-Git/HX-Base
        public string AllowImport(XSDJModel model)
        {
            string str = this.BeSpliOrColl(model.BH);

            if (str != "0")
            {
                return(str);
            }
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            dictionary.Add("bh", model.BH);
            switch (this.baseDAO.queryValueSQL <string>("aisino.Fwkp.Wbjk.XSDJKPState", dictionary))
            {
            case "A":
            case "P":
                return("已经开具发票");
            }
            return("0");
        }