Beispiel #1
0
        void ScZsJy(DataTable dt_jbjlb)
        {
            rtb_zs.Text = "";
            rtb_jy.Text = "";

            DataTable dt_tjjlb = tjjgbiz.Get_TJ_TJJLB_XJ(str_tjbh, str_tjcs);

            if (dt_tjjlb.Rows.Count == 0)
            {
                if (str_sfqyzczsjy == "1")
                {
                    rtb_zs.Text = str_code + "  " + xtbiz.GetXtCsz("ZcZsStr");
                }
            }
            else
            {
                foreach (DataRow dr in dt_tjjlb.Rows)
                {
                    rtb_zs.AppendText(str_code + "  " + dr["mc"].ToString().Trim() + ":" + dr["xj"].ToString().Trim() + "\r");
                }
            }

            if (dt_jbjlb.Rows.Count == 0)
            {
                if (str_sfqyzczsjy == "1")
                {
                    if (dt_tjjlb.Rows.Count == 0)
                    {
                        rtb_jy.Text = str_code + "  " + xtbiz.GetXtCsz("ZcJystr");
                    }
                }
            }
            else
            {
                foreach (DataRow dr in dt_jbjlb.Rows)
                {
                    string    str_jbbh         = dr["jbbh"].ToString().Trim();
                    DataTable dt_tj_suggestion = tjjgbiz.Get_TJ_SUGGESTION_JYNR(str_jbbh);
                    if (dt_tj_suggestion.Rows.Count > 0)
                    {
                        if (dt_tj_suggestion.Rows[0]["jynr"].ToString().Trim() != "")
                        {
                            rtb_jy.AppendText(str_code + "  " + dt_tj_suggestion.Rows[0]["mc"].ToString().Trim() + "\r");
                            rtb_jy.AppendText(dt_tj_suggestion.Rows[0]["jynr"] + "\r");
                        }
                    }
                }
            }

            if (rtb_jy.Text.Trim() == "")
            {
                rtb_jy.Text = str_code + "  " + xtbiz.GetXtCsz("ZcJystr");
            }

            //rtb_zs.Text = "";
            //rtb_jy.Text = "";
            //if (dt_jbjlb.Rows.Count == 0)
            //{
            //    if (str_sfqyzczsjy == "1")
            //    {
            //        rtb_zs.Text = str_code + "  " + xtbiz.GetXtCsz("ZcZsStr");
            //        rtb_jy.Text = str_code + "  " + xtbiz.GetXtCsz("ZcJystr");
            //    }
            //}
            //else
            //{
            //    DataTable dt_tjjlb = tjjgbiz.Get_TJ_TJJLB_XJ(str_tjbh, str_tjcs);
            //    foreach (DataRow dr in dt_tjjlb.Rows)
            //    {
            //        rtb_zs.AppendText(str_code + "  " + dr["mc"].ToString().Trim() + ":" + dr["xj"].ToString().Trim() + "\r");
            //    }
            //    foreach (DataRow dr in dt_jbjlb.Rows)
            //    {
            //        string str_jbbh = dr["jbbh"].ToString().Trim();
            //        DataTable dt_tj_suggestion = tjjgbiz.Get_TJ_SUGGESTION_JYNR(str_jbbh);
            //        if (dt_tj_suggestion.Rows.Count > 0)
            //        {
            //            if (dt_tj_suggestion.Rows[0]["jynr"].ToString().Trim() != "")
            //            {
            //                rtb_jy.AppendText(str_code + "  " + dt_tj_suggestion.Rows[0]["mc"].ToString().Trim() + "\r");
            //                rtb_jy.AppendText(dt_tj_suggestion.Rows[0]["jynr"] + "\r");
            //            }
            //        }
            //    }
            //}
        }