Пример #1
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["vendorcode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "vendorcode")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["vendorcode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "vendorcode")) + Environment.NewLine; inputErr = true;
                }
//				if (o["status"] != null) { if (o["status"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "status"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["invitationdate"] != null) { if (o["invitationdate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "invitationdate"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["responsedate"] != null) { if (o["responsedate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "responsedate"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["mark"] != null) { if (o["mark"].ToString().Length > 5) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "mark"), 5) + Environment.NewLine; inputErr = true;}}
//				if (o["overal"] != null) { if (o["overal"].ToString().Length > 1000) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "overal"), 1000) + Environment.NewLine; inputErr = true;}}
//				if (o["contractno"] != null) { if (o["contractno"].ToString().Length > 50) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "contractno"), 50) + Environment.NewLine; inputErr = true;}}
//				if (o["techevaluate"] != null) { if (o["techevaluate"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "techevaluate"), 1) + Environment.NewLine; inputErr = true;}}
//				if (o["bidprice"] != null) { if (o["bidprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "bidprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["impactamt"] != null) { if (o["impactamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "impactamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["externalamt"] != null) { if (o["externalamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "externalamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["discountamt"] != null) { if (o["discountamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "discountamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["vatcode"] != null) { if (o["vatcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatcode"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["vatrate"] != null) { if (o["vatrate"].ToString().Length > 9) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatrate"), 9) + Environment.NewLine; inputErr = true;}}
//				if (o["vatamt"] != null) { if (o["vatamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["totalawardprice"] != null) { if (o["totalawardprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "totalawardprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["ranking"] != null) { if (o["ranking"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "ranking"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["pricedifferenceo"] != null) { if (o["pricedifferenceo"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "pricedifferenceo"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["pevaluation"] != null) { if (o["pevaluation"].ToString().Length > 1000) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "pevaluation"), 1000) + Environment.NewLine; inputErr = true;}}
//				if (o["commercialevaluation"] != null) { if (o["commercialevaluation"].ToString().Length > 1000) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "commercialevaluation"), 1000) + Environment.NewLine; inputErr = true;}}
//				if (o["techevaludation"] != null) { if (o["techevaludation"].ToString().Length > 1000) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "techevaludation"), 1000) + Environment.NewLine; inputErr = true;}}
//				if (o["comments"] != null) { if (o["comments"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "comments"), 500) + Environment.NewLine; inputErr = true;}}

//				if (o["status"] != null) {
//                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
//                   {
//                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
//                        inputErr = true;
//                   }
//				}
            }
            return(inputErr);
        }
Пример #2
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["materialcode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "materialcode")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["materialcode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "materialcode")) + Environment.NewLine; inputErr = true;
                }
//				if (o["materialname"] != null) { if (o["materialname"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "materialname"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["status"] != null) { if (o["status"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "status"), 1) + Environment.NewLine; inputErr = true;}}
//				if (o["category"] != null) { if (o["category"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "category"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["materialtype"] != null) { if (o["materialtype"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "materialtype"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["partnum"] != null) { if (o["partnum"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "partnum"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["techrequire"] != null) { if (o["techrequire"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "techrequire"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["specification"] != null) { if (o["specification"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "specification"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["origincountry"] != null) { if (o["origincountry"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "origincountry"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["manufacturer"] != null) { if (o["manufacturer"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "manufacturer"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["vendor"] != null) { if (o["vendor"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vendor"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["unit"] != null) { if (o["unit"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "unit"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["netprice"] != null) { if (o["netprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "netprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["grossprice"] != null) { if (o["grossprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "grossprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["comments"] != null) { if (o["comments"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "comments"), 500) + Environment.NewLine; inputErr = true;}}

//				if (o["status"] != null) {
//                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
//                   {
//                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
//                        inputErr = true;
//                   }
//				}
            }
            return(inputErr);
        }
Пример #3
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["valueid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "valueid")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["valueid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "valueid")) + Environment.NewLine; inputErr = true;
                }
                //				if (o["transdate"] != null) { if (o["transdate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "transdate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["employee"] != null) { if (o["employee"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "employee"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["valuedesc"] != null) { if (o["valuedesc"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "valuedesc"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["amount"] != null) { if (o["amount"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "amount"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["original"] != null) { if (o["original"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "original"), 1) + Environment.NewLine; inputErr = true;}}
                //				if (o["status"] != null) { if (o["status"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "status"), 1) + Environment.NewLine; inputErr = true;}}
                //				if (o["comments"] != null) { if (o["comments"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "comments"), 500) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvalstatus"] != null) { if (o["approvalstatus"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvalstatus"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvedby"] != null) { if (o["approvedby"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvedby"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["approveddate"] != null) { if (o["approveddate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approveddate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvednote"] != null) { if (o["approvednote"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvednote"), 500) + Environment.NewLine; inputErr = true;}}

                //				if (o["status"] != null) {
                //                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
                //                   {
                //                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
                //                        inputErr = true;
                //                   }
                //				}
            }
            return(inputErr);
        }
Пример #4
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["eventid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "eventid")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["eventid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "eventid")) + Environment.NewLine; inputErr = true;
                }
//				if (o["eventtype"] != null) { if (o["eventtype"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "eventtype"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["startdate"] != null) { if (o["startdate"].ToString().Length > 3) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "startdate"), 3) + Environment.NewLine; inputErr = true;}}
//				if (o["enddate"] != null) { if (o["enddate"].ToString().Length > 3) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "enddate"), 3) + Environment.NewLine; inputErr = true;}}
//				if (o["eventstatus"] != null) { if (o["eventstatus"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "eventstatus"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["lookup"] != null) { if (o["lookup"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "lookup"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["pic"] != null) { if (o["pic"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "pic"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["notes"] != null) { if (o["notes"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "notes"), 500) + Environment.NewLine; inputErr = true;}}

//				if (o["status"] != null) {
//                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
//                   {
//                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
//                        inputErr = true;
//                   }
//				}
            }
            return(inputErr);
        }
Пример #5
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["itemid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "itemid")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                if (o["itemid"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "itemid")) + Environment.NewLine; inputErr = true;
                }
//				if (o["itemcate"] != null) { if (o["itemcate"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "itemcate"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["itemdesc"] != null) { if (o["itemdesc"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "itemdesc"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["status"] != null) { if (o["status"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "status"), 1) + Environment.NewLine; inputErr = true;}}
//				if (o["location"] != null) { if (o["location"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "location"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["unit"] != null) { if (o["unit"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "unit"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["quantity"] != null) { if (o["quantity"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "quantity"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["materialprice"] != null) { if (o["materialprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "materialprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["serviceprice"] != null) { if (o["serviceprice"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "serviceprice"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["materialvalue"] != null) { if (o["materialvalue"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "materialvalue"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["servicevalue"] != null) { if (o["servicevalue"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "servicevalue"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["vatcode"] != null) { if (o["vatcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatcode"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["vatrate"] != null) { if (o["vatrate"].ToString().Length > 9) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatrate"), 9) + Environment.NewLine; inputErr = true;}}
//				if (o["vatamt"] != null) { if (o["vatamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["totalamt"] != null) { if (o["totalamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "totalamt"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["techrequire"] != null) { if (o["techrequire"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "techrequire"), 500) + Environment.NewLine; inputErr = true;}}
//				if (o["duration"] != null) { if (o["duration"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "duration"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["onsitedate"] != null) { if (o["onsitedate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "onsitedate"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["commencedate"] != null) { if (o["commencedate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "commencedate"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["completiondate"] != null) { if (o["completiondate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "completiondate"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["comments"] != null) { if (o["comments"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "comments"), 500) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke0"] != null) { if (o["anal_pke0"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke0"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke1"] != null) { if (o["anal_pke1"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke1"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke2"] != null) { if (o["anal_pke2"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke2"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke3"] != null) { if (o["anal_pke3"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke3"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke4"] != null) { if (o["anal_pke4"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke4"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke5"] != null) { if (o["anal_pke5"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke5"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke6"] != null) { if (o["anal_pke6"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke6"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke7"] != null) { if (o["anal_pke7"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke7"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke8"] != null) { if (o["anal_pke8"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke8"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["anal_pke9"] != null) { if (o["anal_pke9"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_pke9"), 25) + Environment.NewLine; inputErr = true;}}
//				if (o["extreference1"] != null) { if (o["extreference1"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference1"), 30) + Environment.NewLine; inputErr = true;}}
//				if (o["extreference2"] != null) { if (o["extreference2"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference2"), 30) + Environment.NewLine; inputErr = true;}}
//				if (o["extreference3"] != null) { if (o["extreference3"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference3"), 30) + Environment.NewLine; inputErr = true;}}
//				if (o["extreference4"] != null) { if (o["extreference4"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference4"), 30) + Environment.NewLine; inputErr = true;}}
//				if (o["extdate1"] != null) { if (o["extdate1"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate1"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["extdate2"] != null) { if (o["extdate2"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate2"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["extdate3"] != null) { if (o["extdate3"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate3"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["extdate4"] != null) { if (o["extdate4"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate4"), 0) + Environment.NewLine; inputErr = true;}}
//				if (o["extnumber1"] != null) { if (o["extnumber1"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber1"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["extnumber2"] != null) { if (o["extnumber2"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber2"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["extnumber3"] != null) { if (o["extnumber3"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber3"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["extnumber4"] != null) { if (o["extnumber4"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber4"), 18) + Environment.NewLine; inputErr = true;}}
//				if (o["extdescription1"] != null) { if (o["extdescription1"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription1"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["extdescription2"] != null) { if (o["extdescription2"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription2"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["extdescription3"] != null) { if (o["extdescription3"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription3"), 255) + Environment.NewLine; inputErr = true;}}
//				if (o["extdescription4"] != null) { if (o["extdescription4"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription4"), 255) + Environment.NewLine; inputErr = true;}}

//				if (o["status"] != null) {
//                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
//                   {
//                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
//                        inputErr = true;
//                   }
//				}
            }
            return(inputErr);
        }
Пример #6
0
        public override bool validate(JObject o, BUS.BUSControl.ValidType type, ref string sErr)
        {
            BUS.StLanguageControl.TraslateMethod tMethod = BUS.StLanguageControl.translate;
            bool inputErr = false;

            if (type == ValidType.Del)
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
            }
            else
            {
                if (o["packagecode"] == null)
                {
                    sErr += string.Format(tMethod(this, "Invalid {0}. Please check again"), tMethod(this, "packagecode")) + Environment.NewLine; inputErr = true;
                }
                //				if (o["packagetitle"] != null) { if (o["packagetitle"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "packagetitle"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["status"] != null) { if (o["status"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "status"), 1) + Environment.NewLine; inputErr = true;}}
                //				if (o["dagid"] != null) { if (o["dagid"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "dagid"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["parentcode"] != null) { if (o["parentcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "parentcode"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["isterm"] != null) { if (o["isterm"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "isterm"), 1) + Environment.NewLine; inputErr = true;}}
                //				if (o["packagedate"] != null) { if (o["packagedate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "packagedate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["packageno"] != null) { if (o["packageno"].ToString().Length > 50) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "packageno"), 50) + Environment.NewLine; inputErr = true;}}
                //				if (o["costcode"] != null) { if (o["costcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "costcode"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["pic"] != null) { if (o["pic"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "pic"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["supervisor"] != null) { if (o["supervisor"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "supervisor"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["packagedesc"] != null) { if (o["packagedesc"].ToString().Length > 1000) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "packagedesc"), 1000) + Environment.NewLine; inputErr = true;}}
                //				if (o["requireddate"] != null) { if (o["requireddate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "requireddate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["expirydate"] != null) { if (o["expirydate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "expirydate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["asigndate"] != null) { if (o["asigndate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "asigndate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["receiveddate"] != null) { if (o["receiveddate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "receiveddate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["currencycode"] != null) { if (o["currencycode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "currencycode"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["currencyrate"] != null) { if (o["currencyrate"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "currencyrate"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["amount"] != null) { if (o["amount"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "amount"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["vatcode"] != null) { if (o["vatcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatcode"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["vatrate"] != null) { if (o["vatrate"].ToString().Length > 9) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatrate"), 9) + Environment.NewLine; inputErr = true;}}
                //				if (o["vatamt"] != null) { if (o["vatamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "vatamt"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["totalamt"] != null) { if (o["totalamt"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "totalamt"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["comments"] != null) { if (o["comments"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "comments"), 500) + Environment.NewLine; inputErr = true;}}
                //				if (o["project"] != null) { if (o["project"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "project"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["pcklevel"] != null) { if (o["pcklevel"].ToString().Length > 5) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "pcklevel"), 5) + Environment.NewLine; inputErr = true;}}
                //				if (o["leaf"] != null) { if (o["leaf"].ToString().Length > 1) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "leaf"), 1) + Environment.NewLine; inputErr = true;}}
                //				if (o["contractcode"] != null) { if (o["contractcode"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "contractcode"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk0"] != null) { if (o["anal_cpk0"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk0"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk1"] != null) { if (o["anal_cpk1"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk1"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk2"] != null) { if (o["anal_cpk2"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk2"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk3"] != null) { if (o["anal_cpk3"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk3"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk4"] != null) { if (o["anal_cpk4"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk4"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk5"] != null) { if (o["anal_cpk5"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk5"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk6"] != null) { if (o["anal_cpk6"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk6"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk7"] != null) { if (o["anal_cpk7"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk7"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk8"] != null) { if (o["anal_cpk8"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk8"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["anal_cpk9"] != null) { if (o["anal_cpk9"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "anal_cpk9"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["extreference1"] != null) { if (o["extreference1"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference1"), 30) + Environment.NewLine; inputErr = true;}}
                //				if (o["extreference2"] != null) { if (o["extreference2"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference2"), 30) + Environment.NewLine; inputErr = true;}}
                //				if (o["extreference3"] != null) { if (o["extreference3"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference3"), 30) + Environment.NewLine; inputErr = true;}}
                //				if (o["extreference4"] != null) { if (o["extreference4"].ToString().Length > 30) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extreference4"), 30) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdate1"] != null) { if (o["extdate1"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate1"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdate2"] != null) { if (o["extdate2"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate2"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdate3"] != null) { if (o["extdate3"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate3"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdate4"] != null) { if (o["extdate4"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdate4"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["extnumber1"] != null) { if (o["extnumber1"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber1"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["extnumber2"] != null) { if (o["extnumber2"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber2"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["extnumber3"] != null) { if (o["extnumber3"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber3"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["extnumber4"] != null) { if (o["extnumber4"].ToString().Length > 18) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extnumber4"), 18) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdescription1"] != null) { if (o["extdescription1"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription1"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdescription2"] != null) { if (o["extdescription2"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription2"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdescription3"] != null) { if (o["extdescription3"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription3"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["extdescription4"] != null) { if (o["extdescription4"].ToString().Length > 255) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "extdescription4"), 255) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvalstatus"] != null) { if (o["approvalstatus"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvalstatus"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvedby"] != null) { if (o["approvedby"].ToString().Length > 25) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvedby"), 25) + Environment.NewLine; inputErr = true;}}
                //				if (o["approveddate"] != null) { if (o["approveddate"].ToString().Length > 0) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approveddate"), 0) + Environment.NewLine; inputErr = true;}}
                //				if (o["approvednote"] != null) { if (o["approvednote"].ToString().Length > 500) { sErr += String.Format(tMethod(this, "Length of {0} is longer than {1} character. Please check"), tMethod(this, "approvednote"), 500) + Environment.NewLine; inputErr = true;}}

                //				if (o["status"] != null) {
                //                   if (!Array.Exists(new string[] { "C", "W", "S" }, el => el == o["status"].ToString()))
                //                   {
                //                        sErr += String.Format(tMethod(this, "Invalid {0} value not in ({1}). Please check"), tMethod(this, "Status"), "S, C, W") + Environment.NewLine;
                //                        inputErr = true;
                //                   }
                //				}
            }
            return(inputErr);
        }