예제 #1
0
 public void InitializeApp()
 {
     DS_Xxfmx = B_Xxfmx_zbzd.GetList("id>=0" + common_file.common_app.yydh_select + " order by id");
     bindingSource1.DataSource = DS_Xxfmx.Tables[0];
     dg_count = DS_Xxfmx.Tables[0].Rows.Count;
     this.dg_xfmx_lkzd.AutoGenerateColumns = false;
 }
예제 #2
0
        //根据lsbh查询是不是审核主单
        public bool Getshsh(string lsbhzd)
        {
            bool   sh_sh = false;
            string issh  = common_file.common_app.is_wsh;

            BLL.Xxfmx_zbzd   B_Xxfmx_zbzd = new BLL.Xxfmx_zbzd();
            Model.Xxfmx_zbzd M_Xxfmx_zbzd = new Model.Xxfmx_zbzd();
            DataSet          ds           = B_Xxfmx_zbzd.GetList("lsbh='" + lsbhzd + "'");

            if (ds.Tables[0].Rows.Count > 0)
            {
                issh = ds.Tables[0].Rows[0]["is_sh"].ToString();
                if (issh == common_file.common_app.is_sh)
                {
                    sh_sh = true;
                }
            }


            return(sh_sh);
        }