public MApiModel.recApi2.Rootobject GetStockListMN(
            MApiModel.api2.Rootobject getapi2)
        {
            MApiAccess.AccessApi Mapi = new MApiAccess.AccessApi();

            if (Global.g_token == null || Global.g_token.tokenInfo == null || string.IsNullOrEmpty(Global.g_token.tokenInfo.endDate) || DateTime.Parse(Global.g_token.tokenInfo.endDate) < DateTime.Now)
            {
                MApiModel.api1.Rootobject tempToken = new MApiModel.api1.Rootobject();
                tempToken.comid   = 100;
                tempToken.action  = "getToken";
                tempToken.khhm    = "300384";
                tempToken.openkey = hn.Common.StringHelper.MD5string("10011630");
                Global.g_token    = Mapi.AccessApi1(tempToken);
            }

            getapi2.comid  = "100";
            getapi2.action = "getMN_cp_11";
            getapi2.token  = Global.g_token.token;

            MApiModel.recApi2.Rootobject rec = Mapi.AccessApi2(getapi2);

            return(rec);
        }
        public MApiModel.recApi2.Rootobject GetStockListMN_2(
            MApiModel.api2.Rootobject getapi2, int comid)
        {
            MApiAccess.AccessApi Mapi = new MApiAccess.AccessApi();


            MApiModel.api1.Rootobject tempToken = new MApiModel.api1.Rootobject();
            tempToken.comid   = comid;
            tempToken.action  = "getToken";
            tempToken.khhm    = "300384";
            tempToken.openkey = hn.Common.StringHelper.MD5string("10011630");


            MApiModel.recToken.Rootobject token = Mapi.AccessApi1(tempToken);


            getapi2.comid  = "100";
            getapi2.action = "getMN_cp_11";
            getapi2.token  = token.token;

            MApiModel.recApi2.Rootobject rec = Mapi.AccessApi2(getapi2);

            return(rec);
        }