예제 #1
0
        public void Execute(WSGuid Sup_GuidID, WSString Sup_StrName, WSBoolean ConsiderNull_Sup_StrName)
        {
            Params.spU_tblSupplier param = new Params.spU_tblSupplier(true);
            param.SetUpConnection(string.Empty);

            if (Sup_GuidID == null || Sup_GuidID.UseNull)
            {
                param.Param_Sup_GuidID = SqlGuid.Null;
            }
            else if (!Sup_GuidID.UseDefault)
            {
                param.Param_Sup_GuidID = Sup_GuidID.Value;
            }

            if (Sup_StrName == null || Sup_StrName.UseNull)
            {
                param.Param_Sup_StrName = SqlString.Null;
            }
            else if (!Sup_StrName.UseDefault)
            {
                param.Param_Sup_StrName = Sup_StrName.Value;
            }

            if (ConsiderNull_Sup_StrName == null || ConsiderNull_Sup_StrName.UseNull)
            {
                param.Param_ConsiderNull_Sup_StrName = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Sup_StrName.UseDefault)
            {
                param.Param_ConsiderNull_Sup_StrName = ConsiderNull_Sup_StrName.Value;
            }

            using (SPs.spU_tblSupplier sp = new SPs.spU_tblSupplier(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }
예제 #2
0
        public void Execute(WSInt32 Cat_LngID, WSString Cat_StrName, WSBoolean ConsiderNull_Cat_StrName)
        {
            Params.spU_tblCategory param = new Params.spU_tblCategory(true);
            param.SetUpConnection(string.Empty);

            if (Cat_LngID == null || Cat_LngID.UseNull)
            {
                param.Param_Cat_LngID = SqlInt32.Null;
            }
            else if (!Cat_LngID.UseDefault)
            {
                param.Param_Cat_LngID = Cat_LngID.Value;
            }

            if (Cat_StrName == null || Cat_StrName.UseNull)
            {
                param.Param_Cat_StrName = SqlString.Null;
            }
            else if (!Cat_StrName.UseDefault)
            {
                param.Param_Cat_StrName = Cat_StrName.Value;
            }

            if (ConsiderNull_Cat_StrName == null || ConsiderNull_Cat_StrName.UseNull)
            {
                param.Param_ConsiderNull_Cat_StrName = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Cat_StrName.UseDefault)
            {
                param.Param_ConsiderNull_Cat_StrName = ConsiderNull_Cat_StrName.Value;
            }

            using (SPs.spU_tblCategory sp = new SPs.spU_tblCategory(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }
        public void Execute(WSGuid Oit_GuidID, WSGuid Oit_GuidOrderID, WSBoolean ConsiderNull_Oit_GuidOrderID, WSGuid Oit_GuidProductID, WSBoolean ConsiderNull_Oit_GuidProductID, WSInt32 Oit_LngAmount, WSBoolean ConsiderNull_Oit_LngAmount)
        {
            Params.spU_tblOrderItem param = new Params.spU_tblOrderItem(true);
            param.SetUpConnection(string.Empty);

            if (Oit_GuidID == null || Oit_GuidID.UseNull)
            {
                param.Param_Oit_GuidID = SqlGuid.Null;
            }
            else if (!Oit_GuidID.UseDefault)
            {
                param.Param_Oit_GuidID = Oit_GuidID.Value;
            }

            if (Oit_GuidOrderID == null || Oit_GuidOrderID.UseNull)
            {
                param.Param_Oit_GuidOrderID = SqlGuid.Null;
            }
            else if (!Oit_GuidOrderID.UseDefault)
            {
                param.Param_Oit_GuidOrderID = Oit_GuidOrderID.Value;
            }

            if (ConsiderNull_Oit_GuidOrderID == null || ConsiderNull_Oit_GuidOrderID.UseNull)
            {
                param.Param_ConsiderNull_Oit_GuidOrderID = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Oit_GuidOrderID.UseDefault)
            {
                param.Param_ConsiderNull_Oit_GuidOrderID = ConsiderNull_Oit_GuidOrderID.Value;
            }

            if (Oit_GuidProductID == null || Oit_GuidProductID.UseNull)
            {
                param.Param_Oit_GuidProductID = SqlGuid.Null;
            }
            else if (!Oit_GuidProductID.UseDefault)
            {
                param.Param_Oit_GuidProductID = Oit_GuidProductID.Value;
            }

            if (ConsiderNull_Oit_GuidProductID == null || ConsiderNull_Oit_GuidProductID.UseNull)
            {
                param.Param_ConsiderNull_Oit_GuidProductID = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Oit_GuidProductID.UseDefault)
            {
                param.Param_ConsiderNull_Oit_GuidProductID = ConsiderNull_Oit_GuidProductID.Value;
            }

            if (Oit_LngAmount == null || Oit_LngAmount.UseNull)
            {
                param.Param_Oit_LngAmount = SqlInt32.Null;
            }
            else if (!Oit_LngAmount.UseDefault)
            {
                param.Param_Oit_LngAmount = Oit_LngAmount.Value;
            }

            if (ConsiderNull_Oit_LngAmount == null || ConsiderNull_Oit_LngAmount.UseNull)
            {
                param.Param_ConsiderNull_Oit_LngAmount = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Oit_LngAmount.UseDefault)
            {
                param.Param_ConsiderNull_Oit_LngAmount = ConsiderNull_Oit_LngAmount.Value;
            }

            using (SPs.spU_tblOrderItem sp = new SPs.spU_tblOrderItem(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }
예제 #4
0
        public void Execute(WSGuid Ord_GuidID, WSDateTime Ord_DatOrderedOn, WSBoolean ConsiderNull_Ord_DatOrderedOn, WSInt32 Ord_LngCustomerID, WSBoolean ConsiderNull_Ord_LngCustomerID, WSDecimal Ord_CurTotal, WSBoolean ConsiderNull_Ord_CurTotal)
        {
            Params.spU_tblOrder param = new Params.spU_tblOrder(true);
            param.SetUpConnection(string.Empty);

            if (Ord_GuidID == null || Ord_GuidID.UseNull)
            {
                param.Param_Ord_GuidID = SqlGuid.Null;
            }
            else if (!Ord_GuidID.UseDefault)
            {
                param.Param_Ord_GuidID = Ord_GuidID.Value;
            }

            if (Ord_DatOrderedOn == null || Ord_DatOrderedOn.UseNull)
            {
                param.Param_Ord_DatOrderedOn = SqlDateTime.Null;
            }
            else if (!Ord_DatOrderedOn.UseDefault)
            {
                param.Param_Ord_DatOrderedOn = Ord_DatOrderedOn.Value;
            }

            if (ConsiderNull_Ord_DatOrderedOn == null || ConsiderNull_Ord_DatOrderedOn.UseNull)
            {
                param.Param_ConsiderNull_Ord_DatOrderedOn = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Ord_DatOrderedOn.UseDefault)
            {
                param.Param_ConsiderNull_Ord_DatOrderedOn = ConsiderNull_Ord_DatOrderedOn.Value;
            }

            if (Ord_LngCustomerID == null || Ord_LngCustomerID.UseNull)
            {
                param.Param_Ord_LngCustomerID = SqlInt32.Null;
            }
            else if (!Ord_LngCustomerID.UseDefault)
            {
                param.Param_Ord_LngCustomerID = Ord_LngCustomerID.Value;
            }

            if (ConsiderNull_Ord_LngCustomerID == null || ConsiderNull_Ord_LngCustomerID.UseNull)
            {
                param.Param_ConsiderNull_Ord_LngCustomerID = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Ord_LngCustomerID.UseDefault)
            {
                param.Param_ConsiderNull_Ord_LngCustomerID = ConsiderNull_Ord_LngCustomerID.Value;
            }

            if (Ord_CurTotal == null || Ord_CurTotal.UseNull)
            {
                param.Param_Ord_CurTotal = SqlMoney.Null;
            }
            else if (!Ord_CurTotal.UseDefault)
            {
                param.Param_Ord_CurTotal = Ord_CurTotal.Value;
            }

            if (ConsiderNull_Ord_CurTotal == null || ConsiderNull_Ord_CurTotal.UseNull)
            {
                param.Param_ConsiderNull_Ord_CurTotal = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Ord_CurTotal.UseDefault)
            {
                param.Param_ConsiderNull_Ord_CurTotal = ConsiderNull_Ord_CurTotal.Value;
            }

            using (SPs.spU_tblOrder sp = new SPs.spU_tblOrder(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }
예제 #5
0
        public void Execute(WSInt32 Cus_LngID, WSString Cus_StrLastName, WSBoolean ConsiderNull_Cus_StrLastName, WSString Cus_StrFirstName, WSBoolean ConsiderNull_Cus_StrFirstName, WSString Cus_StrEmail, WSBoolean ConsiderNull_Cus_StrEmail)
        {
            Params.spU_tblCustomer param = new Params.spU_tblCustomer(true);
            param.SetUpConnection(string.Empty);

            if (Cus_LngID == null || Cus_LngID.UseNull)
            {
                param.Param_Cus_LngID = SqlInt32.Null;
            }
            else if (!Cus_LngID.UseDefault)
            {
                param.Param_Cus_LngID = Cus_LngID.Value;
            }

            if (Cus_StrLastName == null || Cus_StrLastName.UseNull)
            {
                param.Param_Cus_StrLastName = SqlString.Null;
            }
            else if (!Cus_StrLastName.UseDefault)
            {
                param.Param_Cus_StrLastName = Cus_StrLastName.Value;
            }

            if (ConsiderNull_Cus_StrLastName == null || ConsiderNull_Cus_StrLastName.UseNull)
            {
                param.Param_ConsiderNull_Cus_StrLastName = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Cus_StrLastName.UseDefault)
            {
                param.Param_ConsiderNull_Cus_StrLastName = ConsiderNull_Cus_StrLastName.Value;
            }

            if (Cus_StrFirstName == null || Cus_StrFirstName.UseNull)
            {
                param.Param_Cus_StrFirstName = SqlString.Null;
            }
            else if (!Cus_StrFirstName.UseDefault)
            {
                param.Param_Cus_StrFirstName = Cus_StrFirstName.Value;
            }

            if (ConsiderNull_Cus_StrFirstName == null || ConsiderNull_Cus_StrFirstName.UseNull)
            {
                param.Param_ConsiderNull_Cus_StrFirstName = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Cus_StrFirstName.UseDefault)
            {
                param.Param_ConsiderNull_Cus_StrFirstName = ConsiderNull_Cus_StrFirstName.Value;
            }

            if (Cus_StrEmail == null || Cus_StrEmail.UseNull)
            {
                param.Param_Cus_StrEmail = SqlString.Null;
            }
            else if (!Cus_StrEmail.UseDefault)
            {
                param.Param_Cus_StrEmail = Cus_StrEmail.Value;
            }

            if (ConsiderNull_Cus_StrEmail == null || ConsiderNull_Cus_StrEmail.UseNull)
            {
                param.Param_ConsiderNull_Cus_StrEmail = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Cus_StrEmail.UseDefault)
            {
                param.Param_ConsiderNull_Cus_StrEmail = ConsiderNull_Cus_StrEmail.Value;
            }

            using (SPs.spU_tblCustomer sp = new SPs.spU_tblCustomer(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }
예제 #6
0
        public void Execute(WSGuid Pro_GuidID, WSString Pro_StrName, WSBoolean ConsiderNull_Pro_StrName, WSDecimal Pro_CurPrice, WSBoolean ConsiderNull_Pro_CurPrice, WSInt32 Pro_LngCategoryID, WSBoolean ConsiderNull_Pro_LngCategoryID)
        {
            Params.spU_tblProduct param = new Params.spU_tblProduct(true);
            param.SetUpConnection(string.Empty);

            if (Pro_GuidID == null || Pro_GuidID.UseNull)
            {
                param.Param_Pro_GuidID = SqlGuid.Null;
            }
            else if (!Pro_GuidID.UseDefault)
            {
                param.Param_Pro_GuidID = Pro_GuidID.Value;
            }

            if (Pro_StrName == null || Pro_StrName.UseNull)
            {
                param.Param_Pro_StrName = SqlString.Null;
            }
            else if (!Pro_StrName.UseDefault)
            {
                param.Param_Pro_StrName = Pro_StrName.Value;
            }

            if (ConsiderNull_Pro_StrName == null || ConsiderNull_Pro_StrName.UseNull)
            {
                param.Param_ConsiderNull_Pro_StrName = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Pro_StrName.UseDefault)
            {
                param.Param_ConsiderNull_Pro_StrName = ConsiderNull_Pro_StrName.Value;
            }

            if (Pro_CurPrice == null || Pro_CurPrice.UseNull)
            {
                param.Param_Pro_CurPrice = SqlMoney.Null;
            }
            else if (!Pro_CurPrice.UseDefault)
            {
                param.Param_Pro_CurPrice = Pro_CurPrice.Value;
            }

            if (ConsiderNull_Pro_CurPrice == null || ConsiderNull_Pro_CurPrice.UseNull)
            {
                param.Param_ConsiderNull_Pro_CurPrice = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Pro_CurPrice.UseDefault)
            {
                param.Param_ConsiderNull_Pro_CurPrice = ConsiderNull_Pro_CurPrice.Value;
            }

            if (Pro_LngCategoryID == null || Pro_LngCategoryID.UseNull)
            {
                param.Param_Pro_LngCategoryID = SqlInt32.Null;
            }
            else if (!Pro_LngCategoryID.UseDefault)
            {
                param.Param_Pro_LngCategoryID = Pro_LngCategoryID.Value;
            }

            if (ConsiderNull_Pro_LngCategoryID == null || ConsiderNull_Pro_LngCategoryID.UseNull)
            {
                param.Param_ConsiderNull_Pro_LngCategoryID = SqlBoolean.Null;
            }
            else if (!ConsiderNull_Pro_LngCategoryID.UseDefault)
            {
                param.Param_ConsiderNull_Pro_LngCategoryID = ConsiderNull_Pro_LngCategoryID.Value;
            }

            using (SPs.spU_tblProduct sp = new SPs.spU_tblProduct(true)) {
                sp.Execute(ref param);
                param.Dispose();
            }
        }