コード例 #1
0
        private bool getABBNO()
        {
            bool bl = false;


            try
            {
                var result = cmd.PV_POS_ULs.ToList();

                foreach (var item in result)
                {
                    POS_UL ul = new POS_UL();
                    ul.WH_ID    = item.WH_ID;
                    ul.ABBNO    = item.ABBNO;
                    ul.PTDATE   = item.PTDATE;
                    ul.WORKDATE = item.WORKDATE;
                    ul.TMCODE   = item.TMCODE;
                    ul.UFLAG    = "N";

                    sup.POS_ULs.InsertOnSubmit(ul);
                    sup.SubmitChanges();
                }


                //var bill_rs = sup.POS_ULs.Where(s => s.UFLAG == "N").ToList();
                var bill_rs = sup.POS_ULs.Where(s => s.UFLAG == "N").Take(1).ToList();

                foreach (var item in bill_rs)
                {
                    getList(item.WH_ID, item.TMCODE, item.WORKDATE, item.ABBNO);
                }

                if (bill_rs.Count > 0)
                {
                    bl = true;
                }
            }
            catch (Exception ex)
            {
                uplog(Whcode, "5" + ex.Message);

                bl = false;
            }

            return(bl);
        }
コード例 #2
0
 partial void UpdatePOS_UL(POS_UL instance);
コード例 #3
0
 partial void DeletePOS_UL(POS_UL instance);
コード例 #4
0
 partial void InsertPOS_UL(POS_UL instance);