示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tinpworkorderdtl EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotinpworkorderdtl(tinpworkorderdtl tinpworkorderdtl)
 {
     base.AddObject("tinpworkorderdtl", tinpworkorderdtl);
 }
示例#2
0
        private void InsertIntoCustOrder(CustOrderDal custOrderDal,List<MESParameterInfo> lstParams,tinpworkorderdtl workOrderDtl)
        {
            //List<tinpcustorder> lstCustOrder = custOrderDal.GetSelectedObjects<tinpcustorder>(lstParams, string.Empty, true, -1);

            //if (lstCustOrder.Count <= 0)
            //{
            //    #region New
            //    //build cust order
            //    tinpcustorder custorder = new tinpcustorder();
            //    custorder.custordersysid = Function.GetGUID();
            //    custorder.size = workOrderDtl.size;
            //    custorder.styleno = workOrderDtl.styleno;
            //    custorder.color = workOrderDtl.color;
            //    custorder.custorderno = workOrderDtl.custorderno;
            //    custorder.custorderstatus = MES_CustOrder_Status.Active.ToString();
            //    custorder.inqty = workOrderDtl.pairqty;
            //    custorder.addpairqty = 0;
            //    custorder.inspectionqty = 0;
            //    custorder.inventoryqty = 0;
            //    custorder.repairqty = 0;
            //    custorder.returnqty = 0;
            //    custorder.scrapqty = 0;
            //    custorder.shippedqty = 0;
            //    custorder.wiqcqty = 0;
            //    custorder.xrayqty = 0;

            //    custOrderDal.DoInsert<tinpcustorder>(custorder);
            //    #endregion
            //}
        }
示例#3
0
 /// <summary>
 /// Create a new tinpworkorderdtl object.
 /// </summary>
 /// <param name="workordersysid">Initial value of the workordersysid property.</param>
 /// <param name="workorderlineno">Initial value of the workorderlineno property.</param>
 /// <param name="custorderno">Initial value of the custorderno property.</param>
 /// <param name="styleno">Initial value of the styleno property.</param>
 public static tinpworkorderdtl Createtinpworkorderdtl(global::System.String workordersysid, global::System.String workorderlineno, global::System.String custorderno, global::System.String styleno)
 {
     tinpworkorderdtl tinpworkorderdtl = new tinpworkorderdtl();
     tinpworkorderdtl.workordersysid = workordersysid;
     tinpworkorderdtl.workorderlineno = workorderlineno;
     tinpworkorderdtl.custorderno = custorderno;
     tinpworkorderdtl.styleno = styleno;
     return tinpworkorderdtl;
 }